I am running Ubuntu 22 and I have openvpn (client) setup to run as a service. I used to have one .conf file in /etc/openvpn and I recently added another.
When openvpn starts, or I restart it, it only connects to the vpn from the first .conf file and not the second.
If I run sudo openvpn --config secondvpn.conf
it works fine and connects.
The script for the service, in /etc/init.d, says
# Description: This script will start OpenVPN tunnels as specified
# in /etc/default/openvpn and /etc/openvpn/*.conf
I don't have any tunnels specified in /etc/default/openvpn, and both config files are in /etc/openvpn/ and have the .conf extension.
I have tried systemctl daemon-reload
but that didn't seem to help.
I also tried commenting out the LimitNPROC line in /lib/systemd/system/[email protected]. (from OpenVPN won't start as a service with config file) but that didn't make a difference.
How do I get openvpn to recognize my second config file?