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.

link|improve this question

56% accept rate
feedback

1 Answer

up vote 0 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.

link|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
feedback

Your Answer

 
or
required, but never shown

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