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 an auth.txt file inside the /etc/openvpn directory using the following command:

sudo gedit /etc/openvpn/auth.txt

Type in your NordVPN credentials (your username and password) on the separate lines in the file and save it.

2. Open the file you are using to establish a connection:

sudo gedit /etc/openvpn/openvpn_udp/

Change this line:



auth-user-pass auth.txt

Save the file and change its name:

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

3. Edit the openvpn boot file using this command:

sudo gedit /etc/default/openvpn

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


Save the file and reboot your Linux device.

4. Once the device has rebooted, open the terminal and type in:

sudo traceroute

The first hop address should be, and on you should see the IP address of the German server you are connected to.

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.


Was this article helpful?