B
B
Boris192018-07-26 10:30:24
openvpn
Boris19, 2018-07-26 10:30:24

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

1 answer(s)
M
mureevms, 2018-07-26
@Boris19

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 question

Ask a Question

731 491 924 answers to any question