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

Post Reply
luckman212
OpenVPN User
Posts: 39
Joined: Fri Jun 10, 2011 12:03 am

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

Post by luckman212 » Wed Jan 08, 2020 1:24 pm

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.

luckman212
OpenVPN User
Posts: 39
Joined: Fri Jun 10, 2011 12:03 am

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

Post by luckman212 » Wed Jan 08, 2020 3:09 pm

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)

Post Reply