Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have the Shrew client installed in order to connect to a cisco VPN.

(side note: anyconnect royally blows and I spent several hours trying to get it to work; I had shrew running within 2 minutes of installing it.)

Anyway, I can connect just fine and it works.

What I need to do is schedule the connection. For example, once a day I want a process to start shrew, auto connect to the vpn then run a SQL script. Once the script is finished I want shrew to disconnect from the VPN.

So far I have the following:

"C:\Program Files\ShrewSoft\VPN Client\ipsecc.exe" -r ClientSite -u MyUser -p MyPassword -a

When this runs, Shrew connects and starts the VPN interface. However, that line doesn't return until someone clicks the "disconnect" button.

Ideas?

share|improve this question

1 Answer 1

Dear Cisco and Shrew user,

See Shrew's /bin/ikec and its man as demonstrated by http://vouters.dyndns.org/tima/Linux-Cisco_IOS-Radius-OpenCA-Configuring_Linux_for_Cisco_IOS_AAA.html My guess is that this should indeed satisfy your expectation.

Yours truly, Philippe

share|improve this answer
1  
Hi Philippe, a lot of your answers (5/7 on SF, 6/6 on U&L, 30/33 on SO) seem to be very little more than a link to your own personal site. In addition to having the link rot problem, this is getting dangerously close to spam. Some of them (such as this one) don't even appear to attempt to answer the question, even in the link. Could you try including a summary of the actual answer here on ServerFault? –  Ladadadada Feb 7 at 12:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.