This is a tutorial on how to start an OpenVPN connection when your Linux system boots.
1. Create auth.txt file inside /etc/openvpn directory via this command:
sudo gedit /etc/openvpn/auth.txt
Fill it with your NordVPN credentials:
2. Then open the file which you are using to establish a connection:
sudo gedit /etc/openvpn/de75.nordvpn.com.udp1194.ovpn
And change this line:
Save the file and change its name:
sudo mv /etc/openvpn/de75.nordvpn.com.udp1194.ovpn /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
Save the file and reboot your Linux device.
4. After the reboot - open the terminal and type in:
sudo traceroute 220.127.116.11
The first hop address should be 10.8.8.1 and in ipleak.net you should see Germany 75 servers IP address.
First, set up the VPN connection by following the "OpenVPN via Network Manager" section in this article: https://support.nordvpn.com/hc/en-us/articles/206927749-Linux-Ubuntu-Debian-setup
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.