Running multiple server configs

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
lordmata
OpenVpn Newbie
Posts: 4
Joined: Mon Apr 15, 2019 12:30 pm

Running multiple server configs

Post by lordmata » Wed Apr 17, 2019 2:40 pm

I'm trying to run multiple server.conf files on my VPS, but it seems to
always look only for server.conf file.

I've edited the the /etc/default/openvpn file to AUTOSTART="server-tap"
to just try to redirect it to only one config for now and it doesn't work.
The service crashes with the following message: Apr 17 09:50:41
vps234963 systemd[1]: Failed to start OpenVPN connection to server.
I've ran "systemctl daemon-reload" after editing the AUTOSTART line.

As soon as I put back the original "server.conf" file back into the
/etc/openvpn/ directory it restarts fine (even if AUTOSTART is still
pointing to server-tap.conf).

I've installed OpenVPN using the angristan script
(https://github.com/Angristan/OpenVPN-install)

Any ideas what could be happening here?

Post Reply