Add a gateway outside the current subnet interface ?
-
Hello,
I have two LANs, one at home and one at my wife's office, connected by a site to site openvpn connection. This works like a charm.
At office's side, I had to set up some static routes to acces a dedicated platfom via a custom box inside my lan.
I would like to set up the routing also at home so that my wife can connect the platform from home and not only from office. But as IP is outside of the interface subnet, I can't add it.
What would be the best way to add it if it's possible ?
-
Pfsense Office : 192.168.7.1
-
Office LAN : 192.168.7.0 (wired) & 192.168.3.0 (wireless)
-
Pfsense Home : 192.168.4.1
-
Home LAN : 192.168.4.0 (wireless)
-
Site to site openvpn : use 192.168.5.0 as virtual IP
-
Custom Box : 192.168.7.198
-
Static route : access to 172.30.0.0/16 via 192.168.7.198
-
-
just add a route to the vpn options on your home-pfsense for 172.30.0.0/16 via the openvpn-server-ip on the office-pfsense ?
-
don't add static routes like that with OpenVPN, add them in the custom options box instead. "route x.x.x.x 255.255.x.x"
-
Thanks, I'll do this way.
-
Hi,
Can I add a route when the Site to site OpenVPN is from Office (client) to Home (server) or do I need to switch the roles first ?
Thanks,
Nicolas -
it can be done either way, doesn't matter which end is which.
-
Perfect, it works like a charm 8)