Subnets and site-2-site
-
We have a pfsense server with multible subnets in our office, and a site-2-site OpenVPN tunnel with shared key to our hosting site. It works fine to between the default LAN to the hosting site, but i can't get a connection from any of the subnets to the hosting site.
Office LAN: 192.168.200.0/24 – Office pfsense Box ---- OpenVPN --- hosting pfsense box -- 192.168.100.0/24
|
Office UNIX 192.168.1.0/24
|
Office OPT1 192.168.150.0/24How do i connect Office UNIX and OPT1 to the remote site?
-
Did you add route-commands to the configs for the 192.168.1.0/24 and 192.168.150.0/24 subnets?
-
Did you also add route-commands to the configs for the 192.168.1.0/24 and 192.168.150.0/24 subnets?
No i didn't. Do you mean that i should put a secondary gateway in Interfaces -> UNIX -> IP configuration -> Gateway ?
-
No i mean you should in the field: "custom options" on the openVPN config page add two commands along the lines of:
route 192.168.1.0 255.255.255.0; route 192.168.150.0 255.255.255.0
(add this only on the "right side" in your diagram)
Read the openVPN documentation on http://openVPN.net on how routes are being added and removed on linkup and linkdown of the tunnel