I am trying to setup a network using openVPN
When my file structure looks like this it works fine:
/etc/openvpn
/client
client-01.conf
client-01.key
client-01.crt
ca.crt
systemctl start openvpn-client@client-01
But I want to have access to 2 different networks with separate ca.cert files, so I changed the structure to following:
/etc/openvpn
/client
/intranet.example.com
client-01.conf
client-01.key
client-01.crt
ca.crt
/intranet.foo.com
...
systemctl start openvpn-client@intranet.example.com/client-01
When trying to start openvpn it freezes doing nothing.
When trying to enable it using
systemctl enable openvpn-client@intranet.example.com/client-01
I get error:
Failed to enable unit: File openvpn-client@intranet.example.com/client-01: Invalid argument
Is it possible to use openvpn from within a subfolder using systemd?