cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
488
Views
4
Helpful
1
Replies

AnyConnect VPN connect under program control

eleland01
Level 1
Level 1

Hi, I want to connect and disconnect the AnyConnect vpn system, under program control. In my app, which is C#, I want to be able to launch a Process to connect the AnyConnect client and to disconnect it. This was a trivial operation with the previous vpnclient.exe. However it appears to be difficult or impossible with AnyConnect. The only executable I've seen to try is vpncli.exe. This as you know launches a cli application that expects to interact with the user. I do not want to do this, our service wants to connect and disconnect under its own control.

I've had some luck finding and creating scripts (using visual basic script) that can connect and disconnect. But there appears to be no way to check the status of the connection to make sure it is connected. My service can't continue to run until the connection has been made. Also the password is in plain text in the script or in a file that feeds the script.

This seems like an obvious thing to be able to do, it worked great before. Is this kind of functionality available and how is it done?

I saw another thread that seemed to indicate this was not even possible.

Regards,

Evan

1 Reply 1

Gergely Szabo
VIP Alumni
VIP Alumni

Hi,

this may help you: http://www.infradead.org/openconnect/index.html

Yes, it's primarily for Linux but there's a Windows port available as well.

G.