Automate adding a Route to a VPN connection

Posted: 02-20-2009, 08:22 PM
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

Automate adding a Route to a VPN connection


Responses to "Automate adding a Route to a VPN connection"

Robert L. \(MS-MVP\)
Guest
Posts: n/a
 
Re: Automate adding a Route to a VPN connection
Posted: 02-20-2009, 11:02 PM
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
"Rick Toner" <TwistedTazzMan@Hotmail.com> wrote in message
newsD3EC4C5-5AE3-4396-8ECF-CAD9977B07F2@microsoft.com...
>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
 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Route 0.0.0.0 - local connection only KnopKop Windows Vista Networking & Sharing 1 04-18-2008 10:12 PM
How to add static route for VPN client connection? Richard Jones Windows XP Work Remotely 0 03-13-2005 11:12 PM
add static route to VPN connection Franz Schenk Windows XP Work Remotely 8 10-19-2004 01:14 PM
Automate VPN connection for Sync Paul Proefrock Windows XP Work Remotely 1 10-12-2004 02:07 AM
Establishing a VPN connection takes my default route over. Jean-François Lacrampe Apple Macintosh 3 09-21-2003 03:30 AM