I use a VPN on my windows 7 PC for privacy and currently route all my traffic through the VPN. This arrangement is fine and its plenty fast.

Unfortunately the VPN does not allow any FTP traffic so when I am updating websites I have to disconnect the VPN and work through my local connection.

This is annoying and cumbersome. I have read a little about split tunnelling but this is not quite what I need, and it often talks about 'internet' traffic which is not specific to certain IPs or ports.

Is it possible to route traffic on certain ports through the local connection, or is it possible to route traffic on certain IPs through the local connection using stuff built into windows 7..?



first you need to do the following

Disable the remote gateway option.

These instructions are for Windows XP, but they should be reasonably similar for your VPN connection:

  1. Right click the connection, and choose Properties.
  2. Click "Networking" Tab
  3. With TCP/IP selected, hit "Properties"
  4. Click "Advanced"
  5. Untick "Use default gateway on Remote network"

What this will do is forward all non VPN traffic to your internet connection, instead of attempting to use the internet connection at the remote end. This is turned on by default.

the add a static route to your VPN network

You can add a static route entry in your pc's route table

route ADD MASK

Where is your PPTP VPN network is your VPN mask is your VPN gateway

  • Thanks for the answer. When I do this it appears that NO network traffic goes through the VPN. I dont think this is quite what I want. This VPN is not used to connect to a domain or work intranet, it is used for privacy on my network connection. I want ALL the network traffic to go across the VPN apart from some FTP connections on certain WAN IPs which the VPN does not allow (as the necessary ports are not open on the VPN server). hope this makes sense. Thanks – Rolf Herbert Oct 21 '12 at 16:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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