How to auto(re)connect to openvpn connection?

7,284

Edit /etc/default/openvpn. Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below:

sudo gedit /etc/default/openvpn

then Uncomment the AUTOSTART="all" line.

enter image description here

these steps are issued from this link : Starting OpenVPN client automatically at boot

save and close.

If a username/password is required,

edit the .conf file

edit auth-user-pass user-password-filename

Create a file containing:

username

password

save and close. reboot your system.

Share:
7,284

Related videos on Youtube

kramer65
Author by

kramer65

Updated on September 18, 2022

Comments

  • kramer65
    kramer65 over 1 year

    I've got an openvpn connection set up, which I basically always need to use. Is there a way to always make it connect whenever there is an internet connection?