0

I'd like kind of a shortcut (maybe command line options?) or config that makes OpenVPN Connect connect when I start it, so I don't have to open it and wait till it starts up and then click the toggle, but I only have to click a shortcut for example and it connects automatically.

Automatic connection at startup is unnecessary since I don't always need VPN. (All other posts I found are about this problem above, not mine.)

I use the Windows OpenVPN Connect client.

tkalvin
  • 161

1 Answers1

0

After some struggle, I accidentally found the solution in the GUI.

If you press edit on an imported profile and scroll down you can find a button 'Set connect shortcut' (see image below). It creates a shortcut on the desktop that has a target attribute with the path of the executable, and a command line argument:

--connect-shortcut=<profile_id>  

where profile_id is the id of the profile that you can find above this button. For me it was the file name without the .ovpn file extension by default.
For some reason, this option is not listed on the documentation page.

OpenVPN Connect > Edit Proile

tkalvin
  • 161