Saturday, August 7, 2010

Non-Invasive VPN

If you need to route only certain traffic over a VPN connection, do the following:
  1. After setting up the VPN connection, open up the Connect screen.
  2. Click on Properties and go to the "Networking" tab.
  3. Select Internet Protocol and click on Properties.
  4. Click Advanced and go to the "General" tab.
  5. Uncheck "Use default gateway on remote network."
  6. Click OK 3 times to get back to the connect window.
  7. Connect.
  8. Open a command prompt and run ipconfig to see what IP the VPN server assigned you.
  9. Run the following command: route add 192.62.174.0 MASK 255.255.255.0
Replace  with the actual IP the VPN assigned you.
    For example, if I were assigned IP 192.168.0.216, I'd run this command: route add 192.62.174.0 MASK 255.255.255.0 192.168.0.216
    .