Connect OpenVPN on Windows startup.: Difference between revisions

From munkjensen.net/wiki
No edit summary
mNo edit summary
Line 1: Line 1:
Adding the following parameter to the executable will make it automatically connect to ''myprofile.ovpn'' on startup, and show the classic GUI icon.:
Adding the following parameter to the "Destination" in a shortcut to opennvpn-gui.exe will make it automatically connect to ''myprofile.ovpn'' on startup, and show the classic GUI icon.:
   --connect "myprofile.ovpn"
   "C:\Program Files\OpenVPN\bin\openvpn-gui.exe" ''--connect myprofile.ovpn''


Place this shortcut in the All Users Startup Folder  
Place this shortcut in the All Users Startup Folder  

Revision as of 09:53, 24 January 2020

Adding the following parameter to the "Destination" in a shortcut to opennvpn-gui.exe will make it automatically connect to myprofile.ovpn on startup, and show the classic GUI icon.:

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

Place this shortcut in the All Users Startup Folder

 C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp

if you wish all users should use VPN. If only a certain user shall auto connect then place the shortcut in

 C:\Users\[Username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

NOTE: the myprofile.ovpn file must be available in the folder

 C:\Users\[Username]\OpenVPN\config\