T
T
tfc2019-08-07 09:13:26
VPN
tfc, 2019-08-07 09:13:26

How to start OpenVPN connection at Windows startup automatically?

It is necessary that the OpenVPN connection is automatically connected when Windows starts. Googled it. Made the corresponding services automatic. Did not help. Does anyone actually have this experience? Or what do you recommend?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Radjah, 2019-08-07
@Radjah

Program Files\OpenVPN\config\

#README.txt
This directory or its subdirectories should contain OpenVPN
configuration files each having an extension of .ovpn

When OpenVPN is started as a service, a separate OpenVPN
process will be instantiated for each configuration file.

When OpenVPN GUI is started configs in this directory are added
to the list of available connections

You put your configs with keys and other necessary files there.
Disable "OpenVPNServiceInteractive"
autostart service Enable "OpenVPNService" autostart service "
OpenVPN GUI" is no longer needed.
Make sure that the number of free tap/tun interfaces in the system is sufficient to establish all connections.

A
Alexander Noname, 2019-10-23
@aspinys

for GUI HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
C:\OpenVPN\bin\openvpn-gui.exe --connect server.ovpn
can be 3 places registry setting ( OpenVPN-GUI )
I gave 1 example of them
just for Pts customers need a visual, otherwise in terms of administration do not ask if it works or not

R
res2001, 2019-08-07
@res2001

There was an experience - I set up autostart through services, it worked fine.
Check permissions on files, directories. Turn on logging. Service starts most likely with the rights of LocalSystem.
As far as I remember, it is enough to transfer one of the services to autostart, the rest will be started by itself if necessary. I don't remember the name of the service now.
If it starts normally in manual mode, then the same thing should happen automatically.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question