GUI auto-connect
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
-
- OpenVpn Newbie
- Posts: 10
- Joined: Sun Mar 11, 2018 7:22 am
GUI auto-connect
Is there a way to have the GUI autoconnect on startup on Windows 10? I've had a look at the documentation and can't find a way to do this.
OR Can the Windows OpenVPNService be configured to connect at startup? I got this working by adding an "auth-user-pass password.txt" line to my config file but this means I now have the username and password in the clear on my file system which doesn't seem very secure and also I now can't use the gui to connect/disconnect.
I'm running OpenVPN 2.4.5 on Windows 10.
Any help appreciated.
OR Can the Windows OpenVPNService be configured to connect at startup? I got this working by adding an "auth-user-pass password.txt" line to my config file but this means I now have the username and password in the clear on my file system which doesn't seem very secure and also I now can't use the gui to connect/disconnect.
I'm running OpenVPN 2.4.5 on Windows 10.
Any help appreciated.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: GUI auto-connect
You are stuck "between a rock and a hard place" ..
Openvpn only reads user/pass from a clear text file ..
The GUI cannot be used if you use the service to start openvpn ..
Openvpn only reads user/pass from a clear text file ..
The GUI cannot be used if you use the service to start openvpn ..
-
- OpenVpn Newbie
- Posts: 10
- Joined: Sun Mar 11, 2018 7:22 am
Re: GUI auto-connect
*sigh*
Thanks for the reply. Do you know if there are any plans to improve this user experience? Is there somewhere I can request this feature?
Seems weird that a VPN, which is a good privacy/security tool, would use plaintext passwords in a file on my filesystem - it goes against everything I know about good security practices.
Thanks for the reply. Do you know if there are any plans to improve this user experience? Is there somewhere I can request this feature?
Seems weird that a VPN, which is a good privacy/security tool, would use plaintext passwords in a file on my filesystem - it goes against everything I know about good security practices.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: GUI auto-connect
The new GUI will save encrypted passwords.
-
- OpenVpn Newbie
- Posts: 10
- Joined: Sun Mar 11, 2018 7:22 am
Re: GUI auto-connect
Also, when just using the gui alone is there a way to get it to auto-connect on startup/login?
-
- OpenVpn Newbie
- Posts: 10
- Joined: Sun Mar 11, 2018 7:22 am
Re: GUI auto-connect
Is that the GUI with the latest version?
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 10
- Joined: Sun Mar 11, 2018 7:22 am
Re: GUI auto-connect
Thanks for the help but I'm running on windows and can't seem to find a way to pass the --connect command to the program using the windows services gui.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: GUI auto-connect
You can not use the Openvpn Service to start the Openvpn-GUI.
-
- OpenVpn Newbie
- Posts: 10
- Joined: Sun Mar 11, 2018 7:22 am
Re: GUI auto-connect
I'm probably highlighting my lack of windows knowledge but the GUI is running when I login, isn't this started by the windows service?
I was hoping I could just add the --connect paramater to the start command and it would just work but it doesn't seem to be this way.
I was hoping I could just add the --connect paramater to the start command and it would just work but it doesn't seem to be this way.
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: GUI auto-connect
Search your registry for openvpn-gui
-
- OpenVpn Newbie
- Posts: 10
- Joined: Sun Mar 11, 2018 7:22 am
Re: GUI auto-connect
Can I just say thanks again for your help on this, it's been much appreciated. I'll have a look when I get home tonight.
-
- OpenVpn Newbie
- Posts: 10
- Joined: Sun Mar 11, 2018 7:22 am
Re: GUI auto-connect
So I found this entry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\OpenVPNServiceInteractive and tried changing the ImagePath entry from this "C:\Program Files\OpenVPN\bin\openvpnserv.exe"
to this "C:\Program Files\OpenVPN\bin\openvpnserv.exe" --connect "AU Melbourne.ovpn"
but got an Error 1053: The service did not respond to the start or control request in a timely fashion.
then tried this "C:\Program Files\OpenVPN\bin\openvpnserv.exe --connect AU Melbourne.ovpn"
but got Error 2: The system cannot find the file specified
then this "C:\Program Files\OpenVPN\bin\openvpnserv.exe" "--connect AU Melbourne.ovpn"
but got this again Error 1053: The service did not respond to the start or control request in a timely fashion.
then this "C:\Program Files\OpenVPN\bin\openvpnserv.exe" "--connect" "AU Melbourne.ovpn"
but got this again Error 1053: The service did not respond to the start or control request in a timely fashion.
What am I doing wrong?
to this "C:\Program Files\OpenVPN\bin\openvpnserv.exe" --connect "AU Melbourne.ovpn"
but got an Error 1053: The service did not respond to the start or control request in a timely fashion.
then tried this "C:\Program Files\OpenVPN\bin\openvpnserv.exe --connect AU Melbourne.ovpn"
but got Error 2: The system cannot find the file specified
then this "C:\Program Files\OpenVPN\bin\openvpnserv.exe" "--connect AU Melbourne.ovpn"
but got this again Error 1053: The service did not respond to the start or control request in a timely fashion.
then this "C:\Program Files\OpenVPN\bin\openvpnserv.exe" "--connect" "AU Melbourne.ovpn"
but got this again Error 1053: The service did not respond to the start or control request in a timely fashion.
What am I doing wrong?
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: GUI auto-connect
See my last post ...
-
- OpenVpn Newbie
- Posts: 10
- Joined: Sun Mar 11, 2018 7:22 am
Re: GUI auto-connect
I searched the registry and got a hit in all these locations.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UFH\SHC
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store
HKEY_CURRENT_USER\Software\OpenVPN-GUI
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\OpenVPN_UserSetup
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1001
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1002
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1003
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1001
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1002
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1003
HKEY_USERS\S-1-5-21-2742388443-2443409778-2540095943-1001\Software\Microsoft\Windows\CurrentVersion\UFH\SHC
HKEY_USERS\S-1-5-21-2742388443-2443409778-2540095943-1001\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store
HKEY_USERS\S-1-5-21-2742388443-2443409778-2540095943-1001\Software\OpenVPN-GUI
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\UFH\SHC
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store
HKEY_CURRENT_USER\Software\OpenVPN-GUI
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\OpenVPN_UserSetup
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1001
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1002
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1003
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1001
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1002
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\bam\UserSettings\S-1-5-21-2742388443-2443409778-2540095943-1003
HKEY_USERS\S-1-5-21-2742388443-2443409778-2540095943-1001\Software\Microsoft\Windows\CurrentVersion\UFH\SHC
HKEY_USERS\S-1-5-21-2742388443-2443409778-2540095943-1001\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Store
HKEY_USERS\S-1-5-21-2742388443-2443409778-2540095943-1001\Software\OpenVPN-GUI
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: GUI auto-connect
Code: Select all
HKEY_CURRENT_USER/software/microsoft/windows/currentversion/run
-
- OpenVpn Newbie
- Posts: 10
- Joined: Sun Mar 11, 2018 7:22 am
Re: GUI auto-connect
I found the registry entry that you have referred to. Do I just create an entry for OpenVPNGUI with this value
C:\Program Files\OpenVPN\bin\openvpn-gui.exe --connect "AU Melbourne.ovpn"
C:\Program Files\OpenVPN\bin\openvpn-gui.exe --connect "AU Melbourne.ovpn"
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: GUI auto-connect
You probably need the full path to the .ovpn file as well.
-
- OpenVpn Newbie
- Posts: 3
- Joined: Mon Feb 26, 2018 1:23 am
Re: GUI auto-connect
Make .bat file and put it to startup directory.
Unfortunately, this solution only work if you don't add password on your account
Unfortunately, this solution only work if you don't add password on your account