Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a software VPN client on Windows that can handle route-based connections? That is, the software directs only traffic to specified domains over the VPN while the rest uses non-VPN interfaces. I know this can be done on Linux with iptables.

Ideally I would like a free (in cost) application.

share|improve this question
up vote 1 down vote accepted

If you mean routing based on IP addresses, then Windows can do it by itself:

route add 10.0.0.0 mask 255.0.0.0 10.1.2.3 if 3
route add 0.0.0.0 mask 0.0.0.0 192.168.0.1 if 2

where 10.1.2.3 is the gateway, and if 3/if 2 are interface indexes as shown by route print.

I don't think you can route based on the DNS domain names, though.

share|improve this answer
    
How would this work with a software based VPN running on a local machine? – user64996 Feb 1 '11 at 12:08
    
@user: Could you explain "software based VPN"? – grawity Feb 1 '11 at 12:35
    
e.g. Cisco AnyConnect, Shrew Soft VPN and Microsoft's built-in VPN client – user64996 Feb 1 '11 at 19:40
    
@user: I have never used the first two; but the built-in VPN client of Windows should work just fine. Each VPN connection has a virtual network interface to which you can route stuff. (Same with OpenVPN.) – grawity Feb 1 '11 at 21:17
    
Thanks. Being unable to use domain names is problematic but maybe I will be lucky and my hosts will have static addresses. – user64996 Feb 2 '11 at 19:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .