I'm trying to manually add a route to the VPN connection. The reason is that when i connect to the VPN, i can't navigate the internet. I've tried to uncheck the "Use default gateway on remote network" by going in properties of the vpn connection, then tcp/ipv4 - advanced. The result is that now i can surf the internet but can't communicate with other clients connected to the VPN (i've tried by using the ping command in both cases). i've read that i should use the route add command to make it work. let's assume that the destination IP of the VPN is, how should i write the command? i tried

route -p add mask

where is the public ip of the pc on which the VPN server is hosted, is it's subnet, and is the static ip that my pc (that should connect to the VPN) uses. Of course, this solution doesn't work. What am i doing wrong?

closed as off-topic by MichelZ, Ward, mdpc, HopelessN00b, MDMoore313 Jul 10 '14 at 14:51

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Ward, MDMoore313
  • "Questions must be relevant to professional system administration. Server Fault is dedicated to professional system and network administrators. End user and enthusiast questions are off-topic (contact your system administrator or hire a professional to help you out). Please see the Help Center for more information." – MichelZ, mdpc, HopelessN00b
If this question can be reworded to fit the rules in the help center, please edit the question.


No, you should use:

route -p add mask

where: = subnet you want to reach. e.g. a server you want to reach has, then you use (if you're in a /24) = subnet mask, obviously. = IP Address of the VPN Server gateway

if you don't know then use "Use default gateway on remote network" and look at the routes you have then...

  • I'don't really understand... so if the VPN server has the following details: IP address, Subnet mask and default gateway, then i should write: route -p add mask is that what you mean? – user2959923 Jul 4 '14 at 9:45

Not the answer you're looking for? Browse other questions tagged or ask your own question.