I'm trying to get OpenVPN to start automatically at boot. Today I have to manually type in
sudo openvpn --client --config $HOME/openvpn/anonine.ovpn --ca $HOME/openvpn/anonine.ca.crt
followed by username and password. Is there a good way to make this automatic at boot?
Best Answer
Edit
/etc/default/openvpn
. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:Uncomment the
AUTOSTART="all"
line. Save and close. Reboot your system.