Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've got several network adapter in my PC (from LAN, WLAN, VPN etc...) and what I want to accomplish is that some specific adresses use the VPN adapter, while all others use eiter LAN or WLAN. (So for example http://win-server/ is using VPN, while www.google still uses LAN connection.)

I've want to solve this with the Windows settings and not the VPN settings to make sure I can do it with every VPN-Provider.

Thank You

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

you need to add it to the routing table...

C:\> route add 192.168.1.0 mask 255.255.255.0 192.168.1.1 metric 1 if 2
                                ^ netmask                   interface ^
C:\> route add 10.0.0.0 mask 255.0.0.0 10.0.0.1 metric 2 if 1
               ^ destination           ^gateway        ^ metric

etc etc...

share|improve this answer
    
that is what I will write for the VPN, I think. But how to tell Windows to use LAN/WLAN for all other Routes? –  Tokk Dec 15 '10 at 13:31
    
you add a default route –  bubu Dec 15 '10 at 17:39
    
I don't think that's what the poster is asking about. Windows (and most any OS) will automatically set up correct routing tables when you have multiple interfaces. I think he means being able to direct certain web traffic through interface "X" while having other traffic go through interface "Y". You could probably do it through static routes, routing an IP address of a site through the gateway on the wanted interface but it would be a complex setup and you'd have to navigate pages by IP seeing how most major sites resolve to multiple IPs. –  Deleted Account Mar 7 '11 at 3:54
add comment

Many VPN providers prevent this, unless you enable what is called "Split Tunneling". Cisco is a common VPN provider that does this. Unless the admin of your VPN concentrator has explicitly allowed split tunneling, and defined which ip subnets should use the VPN, then all traffic will flow through the VPN.

share|improve this answer
    
Well, I don't want to to this via VPN Settings, but via Windows beacuse of the resulting universality –  Tokk Dec 15 '10 at 13:33
    
This is absolutely correct - Split Tunnelling needs to be in place, and admin needs to allow this on the VPN gateway. What you are referring to, however, is Inverse Split Tunnelling, where all datagrams enter the tunnel by default, except those destination IPs explicitly allowed by VPN gateway to bypass the gateway and go through a direct rout to the net provided by the gateway. This keeps control of network gateways to a centralized policy device such as the VPN terminator, while keeping overheads minimal. –  user152469 Aug 15 '12 at 14:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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