0

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

mgorven
  • 30,036
  • 7
  • 76
  • 121

2 Answers2

0

I'm not 100% on SonicWall / Aventail but usually how your WAN traffic is controlled by a policy from the firewall provider (the place your connecting) or an option in the actual client itself.

0

The adapter order will usually take precedence over the metric on the routes, so you're better off removing the default route thru the VPN, so you just have your normal default route and your two remote network routes.

I am not familiar with that particular VPN client, but some adapters will do some trickery to make it so you can't mess with things like this, so if you're still scratching your head it may just not be possible to attack it this way.

Also, as someone else mentioned, usually this is controlled either in the VPN client itself or on the security appliance.

localhost
  • 226
  • 1
  • 6