

I recently had to set up OpenVPN on an Ubuntu 16.04 LTS server and the process was slightly more complicated, since with systemd the init script isn't used any more but instead a templated systemd unit file is used.
UBUNTU VPN CLIENT INSTALL
So it may already be sufficient to simply copy your config file to /etc/openvpn/nf On Ubuntu and Debian, when you install the openvpn package, it is automatically configured to start at boot time. conf configuration files in /etc/openvpn, and if found, will start up a separate OpenVPN daemon for each file. When executed, the initscript will scan for.

If you install OpenVPN via an RPM or DEB package on Linux, the installer will set up an initscript. Step 3: Select Multi-protocol VPN client (openconnect). I've added sudo openvpn /file.ovpn to the crontab, and it doesn't connect at startup.Īs an admin you typically use cron to schedule recurring jobs, not to run daemons and services that need to start boot.Īdditionally, when you have admin rights, you don't use sudo in cron jobs, you set the correct user in the field of the /etc/crontab or the /etc/cron.d/job.spec configuration file. Step 2: Click on the Network icon and open the network settings.
