Automate adding a Route to a VPN connection

R

Rick Toner

I connect to quite a few Clients' VPNs and almost every time I have to
disable "Use default gateway on remote network" so I can have it not route
everything through their VPN connection. I then have batch files that I
change the IP to the IP address assigned to the VPN connection that routes
just to their network.

Is there any way to automate adding a route to a VPN connection when I start
it?

Thanks
Rick
 
R

Robert L. \(MS-MVP\)

If it is Windows VPN, you may create a batch file including auto run VPN
plus modifying routing table. this how to may help.

How to vpn automaticallyAdd pre-setup VPN auto-connection by CMAK to the
Startup. 2. Create a logon batch with rasdail command to start the VPN
connection. ...
www.howtonetworking.com/VPN/autorasdial1.htm


--
Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on
http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on
http://www.HowToNetworking.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top