OpenVPN-Client as a Gateway
-
Hello Friends,
Apology if this is a repeated question. it took me a while to look up a similar approach and i got lost.
So to make it simple I'm running on pfsense-2.3.2 and as you see below ..
I'm trying to route traffic between my Local VLAN(s) "10.0.1.0/24 10.0.4.0/24" to/fro a remote OpenVPN-Client's LAN "192.168.1.0/24"OPVN Client's LAN OVPN-Client || OVPN-Server || LANs ||
[Client's LAN]–---------------[Rpi]–------------------|--------------[Pfsense]–----------------|----[VLANs]–-----
192.168.1.0/24 192.168.1.2 (lan ip) | 10.0.1.1 (gw for vlan1) | 10.0.1.0/24
10.10.10.2 (ovpn ip) | 10.0.4.1 (gw for vlan4) | 10.0.4.0/24
| 10.10.10.1 (gw for ovpn) |I would appreciate any guidance here.
Thank you for sharing the knowledge.
-
I would guess it would work if you create firewall rules in each vlan, source your network; destination theirs, and select advanced options in the rule and manually select the gateway interface. So long as you have it assigned to an interface.
Though, admittedly, I am new to OpenVPN.