OpenVPN routing
-
I have on server side/OpenVPN Server, in pfSense:
Tunnel network: 10.0.1.0/24
LAN-network 10.1.0.0/24Machine (Windows) on this LAN-network has two IP-addresses on same interface:
IP1: 8.8.8.5 (example of static public IP) gw 8.8.8.1
IP2: 10.1.0.31 - gw as above (as you can't have two gw, it will of course use the above and not find any route to reply ping).From the client side/OpenVPN Client, I can ping 10.0.1.1 when connection established. I want to be able to ping 10.1.0.31. I (assume) the reason is the gw above, but I'm really far out of my comfort zone…
For this to happen, I assume I need to do something similar to this in Windows (so that the return will get to the correct gw for all traffic on the 10.1.X.X network):
route ADD 10.1.0.0 MASK 255.255.255.0 10.0.1.1 METRIC 1 (I would hope it means that all traffic on 10.1.0.0. should go through the VPN on 10.0.1.1 - I can ping 10.0.1.1 from it).How exactly should the route above be? Am I somewhat close or will it never work?