How can we help you?

Linux start on boot manual connection

This is a tutorial on how to start an OpenVPN connection when your Linux system boots.

Auto-connect OpenVPN via terminal

1. Create auth.txt file inside /etc/openvpn directory via this command:

  • sudo gedit /etc/openvpn/auth.txt

Fill it with your NordVPN credentials:

  • username
  • password

Save it.

2. Then open the file which you are using to establish a connection:

  • sudo gedit /etc/openvpn/openvpn_udp/

And change this line:

  • auth-user-pass


  • auth-user-pass auth.txt

Save the file and change its name:

  • sudo mv /etc/openvpn/openvpn_udp/ /etc/openvpn/de75.conf

3. Then you will have to edit the startup on boot file via this command:

  • sudo gedit /etc/default/openvpn

When the text editor opens, add this line above #AUTOSTART="all":

  • AUTOSTART="de75"

Save the file and reboot your Linux device.

4. After the reboot - open the terminal and type in:

  • sudo traceroute

The first hop address should be and in you should see Germany 75 servers IP address.

Auto-connect OpenVPN via Network Manager (Ubuntu)

First, set up the VPN connection using Network Manager.

Once the VPN connection is set up in the Network manager, edit your main network connection, and select "Automatically connect to VPN when using this connection". In the drop-down list, select the VPN connection you previously created.

Related Articles

© Copyright 2020 all rights reservedSelf-service byNanorep