Answer the question
In order to leave comments, you need to log in
How to configure openvpn autostart via netplan?
Previously, there was ubuntu14.04 and the launch of openvpn was configured via the ifupdown hook, as it is written here https://wiki.debian.org/en/OpenVPN#Auto-start
Now the server has been transferred to Ubuntu18.04 and there netplan is used to configure network interfaces . And it's not clear whether it's possible to specify a parameter in the settings to start openvpn
Answer the question
In order to leave comments, you need to log in
OpenVPN can start itself all the way. When implementing systemd, it became even easier, you just need to know the nuance. It consists in the following:
Let's say there is a config file /etc/openvpn/my-super-config.conf
, then you need to run:
Well, allow auto-raising at system startup, if not already allowed:systemctl enable [email protected]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question