Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set automaticlly connect VPN

Status
Not open for further replies.

EdenXia

MIS
Jul 24, 2002
23
CN
Hello Everyone,

I want to let a remote server can automaticlly connect to our centre site through VPN periodly.
Can I do this function?

Remote : Cisco VPN client 4
Centre : Cisco PIX 515E 6.3(1)


Thanks and best regards
 
Hmm, maybe if you can script your way out of creating a connection with the client, but standard the client is not on-demand controlled, but is only activated thorugh user-interaction. Another far better way would be a small pix-501 for creating the vpn tunnel instead.

Jan
 
True a 501 would be better, but you can do this easily enough with someting as easy as batch files. I have a sales guy who is terrible at updating his schedule so I installed a batch file on his PC that opens the VPN tunnel, maps a shared drive, runs ACT!, allows for ACT! to sync up. Then at the end of the day another batch file un maps the drive, and disconnects the VPN. He has to turn off ACT on his own, but all in all it works great. Even he cannot mess it up. Plus it saved having to get a dedicated hardware alternative for simple stuff like this. You are better off in the long run with a 501 for more reasons than this problem, but you can get away without one if this is the only problem you have.

Look on Cisco's CCO site for the DOS commands for the VPN client. They are faily robust and easy to use. You can use this with Task Scheduler to make it happen at specific times, or many times within a set period, or whatever. You can use it as a call from another batch file and then call up the app that is driving this need too. However you like it, it can be done. Just find the right commnads, and use your creativity a bit to get past those tricky moments since batch files are not a perfect fit for everything.

Eddie Venus

"You wanna buy a monkey?" - Cabin Boy
 
Dear EddieVenus,
Thanks for your help.
I am very interested in your solution.
However I have not a CCO account.Can I get it from other way.


Best Regards.

Dear yizhar,
Thanks for your answer.

Best Regards.
 

Eddie Venus

Also you can tell me what you are trying to do, and I could tell what commands I used to do that. If you are just trying to get a VPN client to connect within a batch file, the command is
c:\Path\to\vpn\client\vpnclient connect profilename of your connection

I also use the switch that tells the program not to verify the logon info with the user, but I forget what that was. I could find out next time a user logs in.

Eddie Venus
 
Dear Eddie Venus,

Thanks for your help.
I have resolve my problem.


Best Regards.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top