2

OpenVPN is configured to run as service. It starts up successfully and auto connect. But I have more than 10 configuration files in config/, and I don't know which configuration OpenVPN uses to connect, and I find no way to disconnect, reconnect or switch connection. What I want is, having OpenVPN run as service in background (but not auto-connecting), I use OpenVPN GUI to start a connection when logging on as standard account. Any idea? Thanks you all in advance.

3 Answers 3

1

I use OpenVPN MI GUI. You need to edit the config files to allow for it to manage tunnels started as a service, and then it works from a standard account. I believe management-hold is the option in the config file to make it not auto-connect on startup.

1
  • management-hold is the correct option. You should close the MI GUI before editing the file and I think also the service requires a restart to pick up and changes in the config file.
    – icc97
    Oct 11, 2017 at 14:40
0

The service Mode is designed for Server mode. If you start the service (or it is started automatically) all ovpn files will connect. You can also use this feature on a client when you always want to connect to the same destination(s). But if you want to choose the connection, you should use the GUI. Is there any advantage when running a service?

0

When you start the service OpenVPN will use all of the configs to connect at the same time.

When OpenVPN runs as a service it will start a separate OpenVPN process for each configuration file it finds in the \Program Files\OpenVPN\config directory and will output a logfile of the same name to the \Program Files\OpenVPN\log directory.

https://openvpn.net/community-resources/running-openvpn-as-a-windows-service/

2
  • Please quote the essential parts of the answer from the reference link(s), as the answer can become invalid if the linked page(s) change.
    – DavidPostill
    Apr 8, 2021 at 19:02
  • @DavidPostill 👌 Apr 9, 2021 at 14:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .