You can connect a Linux system in a variety of ways - choose one below.
Please also note that since Linux has a lot of different distributions
- 1. Open terminal (keyboard shortcut: Ctrl + Alt + T).
- 2. Install OpenVPN client by entering:
(if you are requested a password, enter the password which you have used when creating your account).
sudo apt-get install openvpn
- 3. Navigate to OpenVPN configuration directory with command:
- 4. Download OpenVPN configuration files with command
sudo wget https://nordvpn.com/api/files/zip
4.1. In case you will get `ERROR: The certificate of `nordvpn.com’ is not trusted.`, please install `ca-certificates` package with command:
apt-get install ca-certificates
- 5. If you do not have `unzip` package installed, download it by typing in:
sudo apt-get install unzip
- 6. Extract `config.zip` with command:
sudo unzip zip
- 7. Remove files which will be no longer used:
sudo rm zip
- 8. To see the list of all available servers, simply enter the
command and it will print full configuration file list.
- 9. Choose a server which you would like to connect to.
- 10. Start OpenVPN with a chosen configuration by entering:
sudo openvpn [file name]
sudo openvpn at1.nordvpn.com.udp1194.ovpn
- 11. OpenVPN will ask you for credentials, so simply enter those in with your NordVPN account credentials.
- 12. You have successfully connected to VPN. To disconnect from the OpenVPN connection simply open terminal and press Ctrl + C on your keyboard.
- 1. Open Terminal, Applications->Accessories->Terminal
- 2. Install network-manager-openvpn by typing in Terminal:
sudo apt-get install network-manager-openvpn-gnome
Press Enter (Enter password if it needed).
If that doesn't work, try running these commands first:
sudo add-apt-repository universe sudo apt-get update
- 3. You will be prompted: Do you want to continue? Y/n Type Y and hit Enter.
- 4. Once installation is complete, restart Network Manager by typing:
sudo service network-manager restart
- 5. Network-manager is now running. Now download OpenVPN configuration files package from: .ovpn file package and CA & tls-auth certificate file package: CA and TLS certificates and extract them.
- 6. Click on the double arrow button at the top right of the screen and then select Edit Connections... from the drop-down.
- 7. You will be prompted to choose a connection type. Select Import a saved VPN configuration... and click on Create...
- 8. You will be prompted a window to select a file that you would like to import. Please navigate to a folder where you have extracted the configuration files and select one of the files from the list and click Open. You can check what file corresponds which server at our server list .
- 9. In the popped window select VPN tab.
Gateway: an IP or the hostname of the server (usually the server IP is already set in).
User name: Your NordVPN username;
Password: Your NordVPN password;
CA Certificate: select a corresponding .crt file to the server which you are setting up, from the certificate file which you have downloaded previously.
Click on Advanced...
- 10. Open TLS Authentication tab.
Subject match: leave blank;
Verify peer (server) certificate usage signature: check and select Server;
Use additional TLS authentication: check;
Key file: select a corresponding .key file to the server which you are setting up, from the certificate file which you have downloaded previously;
Key direction: 1.
Click Ok and Save the configuration.
- 11. Now click on the double arrow button at the top right of the screen again and then select VPN connections from the drop-down. Select the server which you have set up and click on it.
- Congrats! You are connected to VPN. In NordVPN's site you can check if the connection works well for you. Refresh the website and check if the status is shown as Secured. Until next time friends!
1. First of all, let's install all needed dependencies.
sudo apt install strongswan strongswan-plugin-eap-mschapv2 strongswan-ikev2 libstrongswan-standard-plugins
2. Now, we need to edit ipsec.secretsfile with your NordVPN username and password.
sudo vim /etc/ipsec.secrets
Usernamewith your NordVPN username and
your passwordwith your password. Your password has to be warped inside double commas, and NOTICE the spaces after username, after ":" and after EAP.
3. Once again, use preferred text editor to enter
/etc/ipsec.conffile. Do not forget root privileges since file is write-protected from anyone except root.
sudo vim /etc/ipsec.conf
conn NordVPN keyexchange=ikev2 dpdaction=clear dpddelay=300s eap_identity="USERNAME" leftauth=eap-mschapv2 left=%defaultroute leftsourceip=%config right=SERVER rightauth=pubkey rightsubnet=0.0.0.0/0 rightid=%any type=tunnel auto=add
Replace file content with this block of text. Do not forget to change
USERNAMEto your NordVPN username you've entered in
/etc/ipsec.secretsfile. And change
SERVERto prefered NordVPN server.
sudo vim /etc/strongswan.d/charon/constraints.conf
Inside the file change
load = yesto
load = no.
5. Now we will need to download our NordVPN RSA certificate.
sudo wget https://downloads.nordvpn.com/certificates/root.der -O /etc/ipsec.d/cacerts/NordVPN.der
6. Now let's restart ipsec in order to reload all configuration files.
sudo ipsec restart If you've made any typos in
/etc/ipsec.conffile you'll be notified when service will be trying to start.
7. After it's done, you can connect by launching this command:
sudo ipsec up NordVPN
This command should show the output "connection NordVPN has been established successfully".
8. To disconnect, simply type
sudo ipsec down NordVPN.
1. Ubuntu users can download the official package from Ubuntu PPA by using the following command:
sudo apt install strongswan-nm strongswan-ikev2 libstrongswan-standard-plugins
2. We need to download the NordVPN Certificate - run the following command and it will be saved at your Home directory:
wget https://downloads.nordvpn.com/certificates/root.pem -O ~/NordVPN.pem
3. Let's restart the Network Manager service by running this command in the terminal:
sudo service network-manager restart
4. Open your Network Manager (System Settings > Network), choose VPN and click on the "+" button.
5. Choose IPsec/IKEv2 (strongswan)
6. Fill in the required information:
- Connection Name: Choose any name for your new connection
- Address: NordVPN server address - you can find an address for a server in our server list here: nordvpn.com/servers/
- Certificate: import newly downloaded NordVPN certificate, which is located at your
- Authentication: choose EAP
- Username: your NordVPN username
- Password: your NordVPN password
- Tick the following checkboxes:
7.1. Request an inner IP address
7.2. Enforce UDP encapsuation
7. Click on Save and a new VPN connection will be added into your Network Manager window, click on it to connect and you should see notification about a successful connection.
If you face any issues, please contact our Support team here and gather information about your errors from
- 1. Open terminal (keyboard shortcut: Ctrl + Alt + T).
- 2. Install L2TP client by entering `sudo apt-get install l2tp-ipsec-vpn` (if you are requested a password, enter the password which you have used when creating your account).
- 3. If a window pops up with a request configuring openswan select "No".
- 4. Afterwards, we would suggest rebooting your computer.
- 5. Go to the Menu and search for L2TP. Start the L2TP Ipsec VPN Manager.
- 6. You will need to add a new connection in to the manager.
- 7. In the Connection name field, enter a name for the new connection, for instance NordVPN. (In this tutorial it is named after the server we will set up the connection-Neatherlands #3)
- 8. Click "Edit" to edit the L2TP details of this new connection.
- 9. In the first tab (IPsec) configure the following details:
Connect automatically: Enabled
Remote Server: Enter one of the NordVPN servers name (For this tutorial we use NL #3 server as an example).
Server Identity: Leave this field blank.
Use pre-shared key for authentication: nordvpn
- 10. In the L2TP tab do not change anything.
- 11. In the third PPP tab check "Allow these protocols" and make sure all four boxes are checked.
User name: Your NordVPN username
Password: Your NordVPN password
- 12. Click on IP Settings and in the tab select to Obtain DNS server addresses automatically and click OK.
- 13. When you return to PPP tab click on Advanced, make sure all the boxes are unchecked and click OK, finish setting up the VPN Connection by clicking OK once again.
- 14. Close down the VPN connection list.
- 15. Now click on the Menu at the left corner of the screen, search for L2TP and select L2TP IPsec VPN Applet.
- 16. At the bottom right corner of the screen there should be a monitor tab, click on it and connect to the server you just set up.
- 17. You are now connected to NordVPN.
- 1. From the desktop click on the Network Manager icon in the top right hand corner, click on VPN Connections and Configure VPN. If you can’t see the Network Manager icon, you can open network manager by clicking on System -> Preferences -> Network Configuration and then click on the VPN tab.
- 2. When the VPN Connection window is displayed, click on Add to create the new connection.
- 3. Ensure the connection type is PPTP and click Create.
- 4. For gateway enter one of the NordVPN servers name . In the Connection name field, enter a name for new connection, for instance NordVPN. Enter your NordVPN username and password.
- 5. Select both MSCHAP and MSCHAPv2 options. Check the box labeled Use Point to Point encryption (MPPE) and then click OK. Click OK again to save the VPN connection.
- 6. Now start the VPN connection by clicking on the Network Manager Icon again, select VPN Connections and click on the new connection you have created.
- 7. The Network Manager icon should now have a little padlock icon on it to indicate that the VPN is now connected.