Hello server enthusiasts,
I have a VPN (pptpd running on Ubuntu 10.04) that I am trying to connect to with a client (Win7).
I can successfully connect to the VPN.
Once connected to the VPN, I can ping both interfaces on the server (1.2.3.4 which is a public IP facing the internet, and the address used to connect to the VPN server (eth0), and 192.168.0.1 (ppp0)).
I cannot ping any other addresses from the Win7 client. IP forwarding is enabled server side.
I am having trouble adding a route via the windows route command.
Server: eth0 - 1.2.3.4 (facing internet), ppp0 - 192.168.0.1
Client: VMware Win7 ppp - 192.168.1.1
Result of ipconfig
on Win7 client:
Default Gateway: 0.0.0.0
IP: 192.168.1.1
Subnet: 255.255.255.255
I have tried
route ADD 192.168.0.1 255.255.255.255 192.168.0.1
route ADD 1.2.3.4 255.255.255.255 192.168.0.1
route ADD 192.168.0.1 255.255.255.255 192.168.1.1 METRIC 266
All fail, telling me that
Incorrect argument 192.168.1.1
or
Incorrect argument 192.168.0.1
There are also 2 metrics corresponding to these IP's in the tables that display as a result of route print
Which must be used?
I would appreciate if someone could shed light on how to add this particular route.
When adding routes, must I always specify a metric and/or interface? Is there anything unique about adding VPN based routes?
Thank you for reading.