How can we help you?

How can I connect to NordVPN using Linux Terminal?

If you are looking for instructions on how to set up our Linux application, please check this article.

Please note that since Linux has a lot of different distributions, the configuration interfaces may vary.

  1. Open Terminal (keyboard shortcut: Ctrl + Alt + T).
  2. Install the OpenVPN client by entering:
     
    • sudo apt-get install openvpn

      You may be asked to enter your user password to confirm your identity.
       
  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

      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. Enter the directory where the server configurations are. These folders are either ovpn_udp or ovpn_tcp:
     
    • cd /etc/openvpn/ovpn_udp/
    • 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 us2957.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]
    • sudo openvpn us2957.nordvpn.com.udp.ovpn
    • sudo openvpn /etc/openvpn/ovpn_udp/us2957.nordvpn.com.udp.ovpn
       
  12. OpenVPN will ask you for credentials. Enter your NordVPN service credentials.

    You can find your NordVPN service credentials at the Nord Account dashboard. Copy the credentials using the buttons on the right.


     
  13. You have successfully connected to VPN. To disconnect, open Terminal and press Ctrl + C on your keyboard.

Related Articles

© Copyright 2020 all rights reservedSelf-service byNanorep