Assumptions: VPN client PC is Windows XP SP2
Once the VPN has been established according to “HowTo install OpenVPN server”, you need to identify the following:
1) WAN IP address of the router. We will call it wanip
2) Default gateway of the WAN interface on PC. We will call it gatepc
3) Default gateway of the VPN tunnel on the PC. We will take 10.8.0.1 as in “HowTo install OpenVPN server”.
Open a DOS prompt on the PC you are running the VPN client and type the following:
With this you should be able to ping the LAN IP address on the router, typically 192.168.1.1 and go out to Internet via the router’s WAN interface and not via the local WAN interface on the PC.
ROUTE ADD wanip MASK 255.255.255.255 gatepc METRIC 1
ROUTE ADD 0.0.0.0 MASK 0.0.0.0 10.8.0.1 METRIC 1