Are there any scripts to establish a new Network Connection?

G

Guest

Basically I want to automate connecting to my Office VPN, modifying route
tables to enable browsing while I am still connected to my office VPN.
Currently this is what I do manually

1. Start -> Connect to -> My Office VPN
2. This connection is set up so that it depends on my ISP Connection
3. So it opens a dialog box with my save userId Pwd on which I click OK
4. Once this is done I run a cmd file which has these commands
route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 my.isp.default.gateway
route add 172.0.0.0 mask 255.0.0.0 my.office.vpn.gateway

Now I want to create a script which will do all this and I intend to add it
to my startup so that when I login to my PC it just establishes my Office VPN
and at the same enables me to connect to Internet without.
 
R

Robert L [MS-MVP]

In this case, you may want to create a batch file includes auto-VPN start plus modifying router. this link may help,

How to vpn automatically You may have many options to connect a VPN server automatically when logon a workstation. Here are some of them. 1. Add pre-setup VPN auto-connection by ...
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
Basically I want to automate connecting to my Office VPN, modifying route
tables to enable browsing while I am still connected to my office VPN.
Currently this is what I do manually

1. Start -> Connect to -> My Office VPN
2. This connection is set up so that it depends on my ISP Connection
3. So it opens a dialog box with my save userId Pwd on which I click OK
4. Once this is done I run a cmd file which has these commands
route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 my.isp.default.gateway
route add 172.0.0.0 mask 255.0.0.0 my.office.vpn.gateway

Now I want to create a script which will do all this and I intend to add it
to my startup so that when I login to my PC it just establishes my Office VPN
and at the same enables me to connect to Internet without.
 

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