How to disable OpenVPN from autostarting at boot-up or reboot?
You have two options:
-
Run:
sudo update-rc.d openvpn disable
Then you'll have to run
sudo service openvpn start
to manually start the VPN. -
Or edit the file /etc/default/openvpn
sudo gedit /etc/default/openvpn
And uncomment the line:
#AUTOSTART="none"
So it looks like:
AUTOSTART="none"
Then you'll have to run
sudo service openvpn start <vpn-name>
to manually start the VPN.<vpn-name>
is the config file name without.conf
.