Ask Your Question

Revision history [back]

Systemd startscripts were bit changed in Fedora, but it seems it is not documented anywhere. The idea is that you could have multiple config files in /etc/openvpn/ directory and you can use systemd to start with different configs. For example assume you have got on config in /etc/openvpn/serverudp.conf and the other one /etc/openvpn/servertcp.conf, which differ only by having "proto udp" and "proto tcp".

Then you enable these services by:

systemctl enable openvpn-server@serverudp.service
systemctl enable openvpn-server@servertcp.service

You start them with these commands and they will use the respective config files:

systemctl start openvpn-server@serverudp.service
systemctl start openvpn-server@servertcp.service

Best regards

Michal Ambroz