Page 1 of 1

OpenVPN Connect client (Windows) Always-On VPN - commandline options?

Posted: Wed Jan 08, 2020 1:24 pm
by luckman212
Hi,
I've got an OpenVPN AS server v2.7.4 running.
Want to know if there is any way to configure a shortcut / commandline option to ovpntray.exe to make the client auto-connect to a specific profile upon launch? Or any way to configure it as an "always-on" connection? Thank you.

Re: OpenVPN Connect client (Windows) Always-On VPN - commandline options?

Posted: Wed Jan 08, 2020 3:09 pm
by luckman212
I will post this for the benefit of others who might be searching...this can be saved as a shortcut:

Code: Select all

C:\Program Files (x86)\OpenVPN Technologies\OpenVPN Client\core\ovpncli.exe -u username -p "super-secret-password" -S +fqdn-of-server connect
The -p option is not secure, so use with caution! (or omit it to be prompted for auth on the commandline)