Local traffic through VPN, global traffic through WAN

Posted by ikonoma on Server Fault See other posts from Server Fault or by ikonoma
Published on 2012-10-26T14:20:46Z Indexed on 2012/10/26 23:04 UTC
Read the original article Hit count: 145

Filed under:
|
|

I have an issue with my internet connection. I am using VPN (Aventail Client) to access the local resources. When connected to VPN the Internet traffic passes through it, not through my LAN or Wi-Fi network. I would like to change the routing table to use the Wi-Fi adapter of the PC for WAN traffic. I have routing file, which works very well and routes the traffic in this way, but only when I am physically connected to the local network through LAN. But I can't set it to work with the VPN connection, because I have no gateway when I am connected to it. Etc this in bold is missing. What to do?

route change 0.0.0.0 mask 0.0.0.0 172.16.76.1 metric 200 if 12
route change 0.0.0.0 mask 0.0.0.0 10.44.2.1 metric 400 if 11
route add 150.251.0.0 mask 255.255.0.0 10.44.2.1 metric 100 if 11
route add 10.0.0.0 mask 255.0.0.0 10.44.2.1 metric 100 if 11
pause

© Server Fault or respective owner

Related posts about vpn

Related posts about sonicwall