Your IP: Unknown · Your Status: Unprotected Protected

OpenVPN

Don’t want to manage the VPN setup manually? Download the NordVPN app for Linux, where all you need to do is install the app, log in, and pick the server you want.

How to connect to OpenVPN via shell:

1. Open Terminal (keyboard shortcut: Ctrl + Alt + T).
2. Install the OpenVPN client by entering:

sudo apt-get install openvpn

(if you are asked for a password, enter the password you have used when creating your Linux account).
3. Navigate to the OpenVPN configuration directory with command:

cd /etc/openvpn

4. Download OpenVPN configuration files with command

sudo wget https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip

4.1. In case you get ERROR: The certificate of `nordvpn.com’ is not trusted., please install the ca-certificates package with command:

sudo apt-get install ca-certificates

5. If you do not have the unzip package installed, download it by typing in:

sudo apt-get install unzip

6. Extract `ovpn.zip` with command:

sudo unzip ovpn.zip

7. Remove files that will no longer be used:

sudo rm ovpn.zip

8. Depending on the connection protocol you want to be using(TCP or UDP), you can do either one of these commands:

cd /etc/openvpn/ovpn_udp/

or

cd /etc/openvpn/ovpn_tcp/

9. To see the list of all available servers, enter the following command:

ls -al

10. Choose a server to connect to.

For this tutorial, we used us842.nordvpn.com, but you should connect to the server suggested to you at https://nordvpn.com/servers/tools/. You can find the server hostname right under the server title.

11. Start OpenVPN with a chosen configuration by entering:

sudo openvpn [file name]

For example:

sudo openvpn us842.nordvpn.com.udp.ovpn
sudo openvpn /etc/openvpn/ovpn_udp/us842.nordvpn.com.udp.ovpn

12. OpenVPN will ask you for credentials. Enter your NordVPN account login details.
13. You have successfully connected to VPN. To disconnect, open Terminal and press Ctrl + C on your keyboard.


How to connect to OpenVPN via Network Manager:

  • 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
    Press Enter.
    You might need to restart your computer if the service does not restart this way.
  • 5. Network-manager is now running. Now download the following files:
    OpenVPN Configuration File PackageExtract them into your selected directory.
  • 6. Click on the double arrow button at the top right of the screen and then select Edit Connections… from the drop-down.
  • 7. Then press Add.
  • 8. You will be prompted to choose a connection type. Select Import a saved VPN configuration… and click on Create…
  • 9. You will be asked 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.
  • 10. In the popped window put in your NordVPN Username and NordVPN Password. Then press Save. And close all of the open windows.
  • 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.
  • 12. Congrats! You are connected to VPN. In our website you can check if the connection works well for you. Refresh the website and check if the status is shown as Secured.