Close this search box.

How to Set Up NordVPN on Ubuntu? (4 Methods)

We are reader supported and may earn a commission when you buy through links on our site. Learn more.

The fastest and easiest way to set up NordVPN on Ubuntu is by installing the VPN’s native application via your Ubuntu Linux terminal. Alternatively, you can set up NordVPN on Ubuntu via the Linux distro’s Network Manager or use an OpenVPN client.

Each setup method offers varying functionalities and technicalities for different Ubuntu users.

Below, I’ll share easy stepwise guides to install NordVPN on Ubuntu via these methods. That way, you can choose the one that best suits your technical understanding of the operating system.

How to Install the NordVPN App on Ubuntu?

NordVPN’s native Ubuntu app is installed and operated via the Linux distro’s terminal.

Thankfully, you don’t have to create the terminal entries from scratch.

Let me show you how to set this up:

  1. Get your NordVPN account. Grab these discount offers for savings.
NordVPN pricing
Image for illustration only. Design, deals, and details may differ. Click on the image for current info.
  1. Search for “terminal” from your Linux apps. Click to launch it.
searching terminal on linux app
  1. Update your Ubuntu by running the command below. Not doing this might affect your installation later.
					sudo apt update
running sudo apt update command for ubuntu
  1. Run the command below to upgrade your Ubuntu. This might take a while.
					sudo apt upgrade
running sudo apt upgrade command for ubuntu
  1. Clear the screen after downloading if you like a clean workspace. Ctrl + L does this for me. Otherwise, skip to the step below.
  2. Run the command below to download the NordVPN app to your Ubuntu via the terminal.
					wget -c https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn-release_1.0.0_all.deb
command install nordvpn on ubuntu
  1. Check the file you just downloaded by running the command below.
running ls command for ubuntu
  1. Copy the text highlighted in red after the code runs. In my case, that’s:
copying red highlight command for ubuntu
  1. Go to the next terminal line and paste the command below. Don’t run the command yet.
					sudo dpkg -i
  1. Then, paste the text you copied in step 8 above in front of the new command line.
					sudo dpkg -i nordvpn-release_1.0.0_all.deb
  1. Press Enter. This will add the NordVPN repository files to your Ubuntu.
  2. Once done, update the NordVPN app. Repeat step 3 to get this done.
  3. You can clear your screen after this stage before moving to the next installation phase.
  4. Install NordVPN by entering the command below.
					sudo apt install nordvpn
running sudo apt install nordvpn for ubuntu
  1. If you follow all the steps correctly, you’ll get a “NordVPN for Linux successfully installed!” message.
nordvpn installed successfully on linux
  1. Repeat step 5 to clear your screen again. Then, log in by entering the command line below.
					nordvpn login
  1. Optional: If you get the error message [Permission denied accessing /run/nordvpn/nordvpn.sock], run the command below, then restart your Ubuntu system. Otherwise, skip to step 19.
					sudo usermod -aG nordvpn $USER
permission denied accessing code in linux
  1. Run the command in step 16 again to log in to NordVPN.
  2. Copy the link and open it in your preferred Ubuntu browser to access the NordVPN login page. I’ll use Firefox for this example.
code for ubuntu browser
  1. Enter your username, then click “Continue.”
nord account log in
  1. Enter your password, then click “Log in.”
entering nord account password
  1. Click “Continue,” then “Open Link” in the browser prompt that appears. This launches your terminal, where you operate the NordVPN app.
open link in nord account
  1. Enable the NordVPN kill switch by entering the command below. This ensures your Ubuntu system’s IP address doesn’t leak to peers, your ISP, or other third parties if NordVPN accidentally disconnects.
					nordvpn set killswitch on
  1. Choose a suitable NordVPN connection protocol. I recommend UDP – the faster OpenVPN protocol – which you can connect to via the command line below.
					nordvpn set protocol udp
nordvpn set protocol udp command for ubuntu
  1. Enter [nordvpn connect] to connect to the fastest or closest available server. This is your best bet for the fastest connection.
nordvpn connect code for ubuntu to connect to portugal
  1. Alternatively, check the NordVPN-Ubuntu command lines in the section below to connect to a country server, get a specific city server within a country, or enable other settings.

NordVPN Ubuntu App Commands to Know

The NordVPN Ubuntu app doesn’t have a graphical user interface that allows you to connect/disconnect servers or tweak settings. Instead, you must use the app from within your Ubuntu terminal.

Fortunately, you don’t have to memorize all the NordVPN Ubuntu app commands since you can access them all via the simple command below.

					man nordvpn
nordvpn manual code for ubuntu

Here are the top picks to remember and how to use them in the app.

Command Alternate Command Function
nordvpn login - Login
nordvpn connect nordvpn c Quick Connect
nordvpn disconnect nordvpn d Disconnect from server
nordvpn set killswitch on - Enable kill switch
nordvpn set killswitch off - Disable kill switch
nordvpn countries - See available country servers
nordvpn cities - See available city servers
man nordvpn - See all commends in terminal

How to Setup NordVPN on Ubuntu via the OpenVPN Client?

The NordVPN OpenVPN CLI setup is preferred by Ubuntu users who want a more hands-on approach to their VPN setup. However, this method leaves you without access to NordVPN’s Meshnet, Kill Switch, and specialty servers.

If you don’t mind that, here’s what to do:

  1. Get your NordVPN account. You’ll need these discounts for savings if it’s your first time.
  2. Launch your Ubuntu terminal.
searching terminal on linux app
  1. Disable IPv6 on your Ubuntu.
    1. Run the command line below in the terminal.
					sudo nano /etc/sysctl.conf
running sudo nano code for ubuntu
    1. Type your password, if prompted, then press Enter. Note that the cursor won’t indicate that you’re typing, but the terminal recognizes the input.
entering sudo nano password for ubuntu
    1. Add the command lines below to the end of the conf file you’ve summoned.
					net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
net.ipv6.conf.tun0.disable_ipv6 = 1
entering command lines for ubuntu
    1. Save and exit the terminal. My keyboard shortcut for this is Ctrl + X, but yours may differ.
    2. Restart your Ubuntu system.
  1. Relaunch the terminal.
  2. Enter the command line below to install the OpenVPN client.
					sudo apt-get install openvpn
    1. Even if you’ve installed the client, rerun the command line to get the latest version.
sudo apt get install openvpn code for ubuntu
  1. Enter your password if prompted, then click Enter to complete the installation.
  2. Go to the OpenVPN configuration directory by running the command below. This way, all commands you run now execute in the directory.
					cd /etc/openvpn
running cd etc openvpn command for ubuntu
  1. Run the command below to download the OpenVPN configuration files to the chosen directory.
					sudo wget https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip
command to download openvpn files for ubuntu
  1. Optional: Run the command below instead if you get a certificate not trusted error.
					sudo apt-get install ca-certificates
  1. Optional: Run the command below if you don’t have an unzip package on your Ubuntu. This is needed to unpack the file we downloaded in step 8.
					sudo apt-get install unzip
running sudo apt get install unzip code for ubuntu
  1. Once unzip is downloaded or confirmed, run the command line below to unpack the package downloaded in step 8.
					sudo unzip ovpn.zip
  1. NordVPN’s OpenVPN server list will now be unpacked into your terminal.
nordvpn openvpn server list in ubuntu terminal
  1. Run the command line below to remove files you no longer need.
					sudo rm ovpn.zip
  1. Launch the directory where the NordVPN OpenVPN servers are unpacked. You can run the commands below to get the UDP (faster) or TCP (more stable) OpenVPN servers.
    1. For UDP:
					cd /etc/openvpn/ovpn_udp/
    1. For TCP:
					cd /etc/openvpn/ovpn_tcp/
launching openvpn udp code for ubuntu
  1. Once you’ve chosen a directory, run the command below to see all the servers in that directory. I’m using the faster OpenVPN (UDP) option for this tutorial.
					ls -al
running ls -al code for ubuntu
  1. Choose a server you want to connect to from the list and copy its address. Below, I’ll show you how to find and connect to the NordVPN recommended server. For now, I’ll connect to a US server [us9963.nordvpn.com.udp.ovpn].
copy address for ubuntu
  1. Run the command line [sudo openvpn_copied server address]. In my case, the command will be:
					sudo openvpn us9963.nordvpn.com.udp.ovpn
running nordvpn udp ovpn command for ubuntu
  1. Fill in your NordVPN service credentials username, then press Enter.
    1. Jump to the subsection below for steps on getting your NordVPN service credentials.
entering nordvpn service credentials for ubuntu
  1. Supply your NordVPN service credentials password, then press Enter.
  2. You’ll get the “Initialization Sequence Completed” message on a successful connection!
initialization sequence completed for ubuntu
  1. You can test for leaks to be sure. I used www.ipleak.net, and I got a US IP address back!
nordvpn ip leak test results on us washington server
  1. Use public Wi-Fi networks without losing sensitive data, unblock geo-restricted streaming content, and play Ubuntu games securely under your NordVPN OpenVPN connection.

How to Get NordVPN Service Credentials?

Your NordVPN service credential is a username and password different from the email/password combo you signed up with. These service credentials can only be used for manual configuration setups, not to log into your NordVPN client dashboard.

Here’s how to get the service credentials:

  1. Go to the NordVPN login page.
  2. Log in with your email and password combination.
nordvpn account log in
  1. Click “NordVPN.”
selecting nordvpn tab in nord account
  1. Scroll to the bottom of the page and click “Set up NordVPN manually.”
set up nordvpn manually
  1. Verify your email address by entering the code NordVPN sends to your email address.
  2. Copy the unique username and password generated by NordVPN. These are your service credentials.
entering nordvpn username and password for manual set up

How to Get Your NordVPN Recommended OpenVPN Server?

The NordVPN recommended server is often the fastest or closest server to you. NordVPN’s systems have decided that this server will offer you the best performance (speed + security).

So, here’s how to find and connect to it via the OpenVPN Client.

  1. Go to the NordVPN server tools page.
  2. Copy the server address you get (it looks like a URL). Mine is for Portugal.
copy portugal server address
  1. Paste the copied address in a text editor.
  2. Add a [.udp.ovpn] or [.tcp.ovpn] suffix (without the brackets) to the address, depending on the OpenVPN protocol directory you’ve opened in your terminal.
adding openvpn suffix after server address
  1. Copy the full address.
  2. Continue with steps 17-22 in the main setup guide above to connect to this server.

How to Setup NordVPN on Ubuntu via the Network Manager Client?

The Ubuntu Network Manager provides the closest thing to a GUI for NordVPN. Still, without all the functionalities you get with the terminal app setup.

It’s also an upgrade over the OpenVPN client setup since you don’t need to manually copy and paste server addresses in the terminal every time.

Let me show you how:

  1. Got your NordVPN account handy? Use these discounts for savings.
  2. Download the NordVPN OpenVPN configuration files.
download nordvpn openvpn configuration files
  1. Open your Ubuntu downloads folder. That’s “Downloads,” in my case.
  2. Right-click the downloaded file and extract it to a preferred folder. I’ll choose “Extract Here” for this demonstration.
extract zip configuration files here
  1. Launch your Ubuntu terminal.
  2. Run the command line below to ensure your Ubuntu system has all the latest updates and OpenVPN network manager upgrades.

sudo apt update && sudo apt full-upgrade -y && sudo apt install network-manager-openvpn-gnome -y

running sudo apt update and upgrade command for ubuntu
  1. You may be prompted to enter your system password. Do so, and press Enter.
  2. Go to your homepage and click the system status icons in the upper right corner.
locating wired connected and wired settings in linux
  1. Toggle “Wired Connected,” then click “Wired Settings.”
  2. Click the “+” icon next to “VPN.”
locating + icon in vpn linux settings
  1. Choose “Import from file.”
import from file button in linux
  1. Open the file where the zipped elements from step 4 were extracted. It’s usually named “ovpn.”
locating ovpn file in linux
  1. Select from the “ovpn_tcp” or “ovpn_udp” files. The UDP protocol is the faster OpenVPN protocol, but TCP is more stable on harsh networks. I prefer UDP for this demo.
locating ovpn tcp file in linux
  1. You might have to wait a few seconds for the files inside this folder to load. Note that each file represents a NordVPN server configured for the OpenVPN protocol.
  2. Once loaded, choose any file corresponding to the server you want to connect to. Then, click “Open.”
    1. You can follow the short guide in the “How to Get Your NordVPN Recommended OpenVPN Server?” section above to get your recommended OpenVPN server.
searching open in linux
  1. Enter your NordVPN service credentials under “User name” and “Password.” These are different from your regular NordVPN login details.
    1. Refer to the guide under “How to Get NordVPN Service Credentials?” above to get it.
add button for linux credentials
  1. Click “Add.”
  2. Toggle the grayed-out button before the server to connect to this location.
toggle vpn server location in linux
  1. Wait till it changes to an active color. This might be green for you, but it’s orange for me.
server location enabled in linux
  1. Test for leaks to confirm you’re now browsing with this server’s IP address.
nordvpn ip leak test results on canada server
  1. Use NordVPN to watch Netflix Canada, browse CBS and CBC catalogs, prevent DDoS attacks against your Linux system, and keep your online activities private in Ubuntu.

How to Install NordVPN Browser Extensions on Ubuntu?

The NordVPN browser extension mimics the Ubuntu app by letting you access more settings and features. However, remember that the extension only protects your in-browser activities and won’t encrypt your sensitive online activities on other apps.

That said, it’s also one of the easiest ways to get NordVPN working on your Ubuntu.

So, here goes:

  1. You’ll need a NordVPN account if you don’t have one. Save money with these one-time NordVPN deals.
  2. Go to your browser’s extensions store. NordVPN has extensions for the Google Chrome, Edge, and Mozilla Firefox browsers.
  3. Search for “NordVPN.” I’ll use Google Chrome on Ubuntu for this guide, but the steps are similar across other supported browsers.
searching nordvpn in chrome web store
  1. Click the NordVPN extension. Please ensure you get the legitimate pick, which usually carries a verified logo.
  2. Click “Add to Chrome.”
add to chrome button for nordvpn
  1. Click “Add extension” on the pop-up that shows.
add extension for nordvpn
  1. Once added, click the Chrome extensions and pin icon next to NordVPN. That ensures you’ll always have direct access to the extension.
locating pin icon in chrome extension for nordvpn
  1. Next, click the NordVPN extension icon.
locating nordvpn extenstion log in
  1. A pop-up appears. Click “Log in.”
  2. You’re directed to the NordVPN login website page. Enter your email address, then click “Continue.”
nordvpn log in in google
  1. Enter your password, then click “Continue.”
entering nordvpn account password in google
  1. You’ll get a successful login message.
  2. Now, click the NordVPN extensions icon again.
  3. Click Settings > Connection.
locating connection settings in nordvpn extension
  1. Enable the kill switch. Otherwise, a random connection drop may leak your DNS/IP address and online activity to your ISP, internet snoops, third-party network admins, or web servers.
locating kill switch in nordvpn extension
  1. Once enabled, you’ll get a prompt showing that you need to connect to the VPN to use the internet. Ignore the message while we continue the setup.
nordvpn kill switch is active
  1. Click the NordVPN extension again. Go through Settings > Security and privacy.
locating security and privacy settings in nordvpn extension
  1. Toggle “Threat Protection Lite” to automatically warn you of malicious websites and block ads while browsing the web.
    1. Threat Protection may interfere with the basic operation of some legitimate sites. In that case, you can briefly turn it off.
enable threat protection lite in nordvpn extension
  1. Click the NordVPN globe icon to return to the dashboard.
quick connect button in nordvpn extension
  1. Click “Quick Connect” to get the best-performing VPN server for your location, determined by NordVPN.
  2. Alternatively, click the dropdown icon to search for countries to connect to. I’ll connect to Spain for this example.
searching spain server in nordvpn extension
  1. Note: For countries with city servers, you can choose what city you want servers in. In this case, I’ll go with “Madrid.”
selecting madrid server in nordvpn extension
  1. Once connected, test for leaks. I use www.ipleak.net to ensure the VPN-assigned server is now what web servers also see.
nordvpn ip leak test results on spain server
  1. Unblock in-browser streaming platforms like BBC iPlayer, securely access your online banking platforms on any network and hide your internet activities from snoopy network admins.
streaming atresplayer with nordvpn using spain server
Streaming AtresPlayer in HD over NordVPN Ubuntu browser extension's Spain server

How to Disconnect From NordVPN on Ubuntu?

How you disconnect from NordVPN on Ubuntu depends on the setup method you’ve chosen. You’re in luck since I’ve shared how to disconnect from a NordVPN server on all Ubuntu setups below.

NordVPN Ubuntu App

Since the NordVPN app is operated in the Ubuntu terminal, that’s also where you disconnect it.

Two commands work for this, as shown below:

  1. Go to the Ubuntu terminal.
  2. Run either [nordvpn d] or [nordvpn disconnect] (without the brackets).
running nordvpn d code in ubuntu
  1. Your connection reverts to normal.
You can run an IP leak test to confirm you’re no longer browsing with the VPN server network.

NordVPN OpenVPN Client

Want to disconnect from the NordVPN OpenVPN server to reconnect to another or use your regular internet connection? Do this:

  1. Launch the Ubuntu terminal.
  2. Press Ctrl + C on your keyboard.
  3. You’ll get command lines with comments “Closing TUN/TAP interface” and “process exiting.”
running closing tun tap interface and process exiting codes in ubuntu

Want to be extra sure? Run an IP test to see if you still use NordVPN’s servers.

Network Manager Interface

Disconnecting from the NordVPN app via the Network Manager interface requires running no code in the terminal.

Here’s what you should do instead:

  1. Click the systems icon tray.
selecting systems icon tray in ubuntu
  1. Toggle the connected NordVPN server.
  2. Click “Turn Off.”
selecting turn off option in ubuntu

And that’s it!

How to Uninstall NordVPN on Ubuntu?

You can only uninstall the NordVPN Ubuntu app setup. For the others, you’ll have to delete the configuration files you’ve created.

Here’s how to uninstall the app:

  1. Open your Ubuntu terminal.
  2. Run the code below.
					sudo apt-get --purge remove 'nordvpn*'
running sudo apt remove nordvpn code in ubuntu
  1. Enter your Ubuntu system password, if prompted.
  2. Press Y, then press the Enter key.
do you want to continue option in ubuntu
  1. NordVPN is now successfully uninstalled.
nordvpn uninstalled from ubuntu

For the other setups, follow this guide:

  1. Open your NordVPN configuration file download folder. It’s “Downloads” for me.
  2. Delete the OpenVPN configuration files you’ve downloaded.
deleting downloaded configuration files
  1. Click the system’s status icon tray.
selecting linux icon tray
  1. Click Wired Connected > Wired Settings.
  2. Click the settings cog next to the created NordVPN configurations.
selecting created nordvpn configuration settings cog
  1. Click “Remove VPN.”
remove vpn button in linux
  1. Repeat this removal process for other NordVPN servers you might have configured on your Ubuntu.

How to Troubleshoot NordVPN Ubuntu Connection Issues?

You shouldn’t face too many issues if you follow the NordVPN-Ubuntu setups in this guide correctly. However, there are a few issues that could mess with your setup.

Here’s how to fix them.

Update Your System

Constantly update your Ubuntu before attempting the NordVPN app installation. Otherwise, there’s a high chance you keep running into terminal errors.

So, run the commands below before anything else to update or upgrade the system:

  • Update Ubuntu:
					sudo apt update
  • Upgrade Ubuntu:
					sudo apt upgrade

Get NordVPN Service Credentials

The OpenVPN and Network Manager setups won’t work without the NordVPN service credentials. Not even if you use your account username and password logins.

entering nordvpn username and password for manual set up

Before attempting these setups, ensure you’ve gotten the relevant credentials. 

Thankfully, there’s a straightforward guide to help you above.

Speak With Customer Support

NordVPN customer support knows their app and platform inside out.

That’s why you should contact them if you’re ever stuck at any setup stage or need to request related assistance.

Remember that you’re a paying customer, and the 24/7 live chat is a part of the value you paid for.

Interesting Reads:


NordVPN doesn’t offer app-based split tunneling on its Ubuntu app or alternative setups. However, you can enjoy its website-based split tunneling via the Ubuntu browser extension to exclude some websites from the VPN tunnel.

That said, experienced Ubuntu users with a deep understanding of network routing and how Ubuntu iptables work can configure NordVPN split tunneling on the operating system.

Enjoy NordVPN on Your Ubuntu

There are a lot of NordVPN-Ubuntu guides that don’t work. 

That’s mainly because they’re outdated, weren’t tested with the right systems, or were missing some crucial steps.

But with the steps above, you can successfully set up the NordVPN-Ubuntu app with all the VPN’s features or configure its OpenVPN client successfully.

Alternatively, there’s the Network Manager setup that improves on the OpenVPN client.

The best part? These one-time NordVPN deals help you save on an account that works for ALL these setups.

NordVPN deal
Our partner, NordVPN, offers an exclusive discount for a limited time! Don't miss out on the chance to save extra money.
Or Try NordVPN for FREE