0

My company is going with OpenVPN and I just got the client (version 2.5.0.100) working on my Windows 10 machine but I would like to connect (including authenticate), check the connection status and disconnect--all from the command line.

I thought that Googling something like "openvpn windows client command line" would produce something but I haven't found it. I searched for something similar in the OpenVPN forum but didn't find anything in that ocean.

Previously, I used Cisco AnyConnect, where I could issue commands like these:

vpncli.exe connect

This would prompt me to enter my credentials and then connect to the host using my default profile.

vpncli.exe state

This would output the current connection state of the VPN connection (e.g. CONNECTED etc.)

vpncli.exe disconnect

This would disconnect the current connection, if there was one.

Is it not possible to do something simple like this with OpenVPN 2.5 for Windows?

0

Try this:

"C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect "myvpn.ovpn"

Other suggestions: Arguments to connect using Open Vpn windows client

  • Thanks, Andy, but I can't find openvpn-gui.exe anywhere. I tried the args that you suggested with some of the .exes that I did find--openvpn32.exe, openvpn64.exe and ovpncli.exe--but they didn't like it. Am I missing something? – Craig Silver Oct 27 '18 at 1:28
  • I'm not familiar with that openvpn client. This is the one most commonly used: openvpn.net/community-downloads – Andy Oct 27 '18 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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