PDA

View Full Version : Cisco VPN Script


Ckesey
2005-07-21, 10:29 AM CDT
I have installed the Cisco VPN command line (4.6.02.0030-k9) and am able to run it from a shell prompt “vpnclient connect profile” gets the sign on process started. At this point I press enter to accept the default username and then I must enter my password followed by a enter keystroke and then a “y” to agree with my company’s VPN rules and terms. I have setup a icon that launches a shell window and enters the command but is there any way to automate the whole process to enter my login information for me??? If anyone has done it can you please post an example to get me started. I have played around with shell scripts but I can’t seem to figure out how to send a “Enter” keystroke to get me to the password line. Any tips or help greatly appreciated !!!!

kg4cbk
2005-07-21, 01:27 PM CDT
You should not fully automate the VPN connection. If someone gained access to your system they would be one click away from getting access to your companies intranet. Not a good thing.

I use the same VPN client to connect to work. We use a safeword token to generate the password each time. I am assuming in your case they use a static password assigned to your account. As such it would be very bad to have your password saved on your system for such a use.