Connecting to NordVPN on Linux Over Terminal

preview_player
Показать описание
Secure up to 6 devices at once with NordVPN apps
Keep the whole household safe with just 1 subscription

***

***

1. First of all, open the terminal window. You can do that by pressing the Ctrl, Alt and T keys at the same time.
2. Disable IPv6. Click here to learn how.
3. Install the OpenVPN client by typing command:
- sudo apt-get install openvpn
You might be asked to enter your user password to confirm your identity.
4. After the installation completes, navigate to the OpenVPN directory by typing command:
- cd /etc/openvpn
5. Download OpenVPN configuration files with commands:
- sudo apt-get install ca-certificates
6. Install the Unzip package to access the server archive you have just downloaded:
- sudo apt-get install unzip
7. Now, extract and clean up the configurations by typing commands:
9. In the terminal window, choose the TCP or UDP protocol depending on your preference by typing commands:
- cd ovpn_tcp
For TCP
- cd ovpn_udp
For UDP
UDP is the protocol we usually suggest to our users.
10. Now, type command:
10. You will be prompted to enter your NordVPN account details.
Type your username and password; the password will not be shown as you type it, so do not worry – that is how it is supposed to work.
11. You are all set. If you want to close the connection, open the terminal window and press the Ctrl and C buttons on your keyboard simultaneously.
The list of commands to type in the terminal in succession to connect:
1. sudo apt-get install openvpn
2. cd /etc/openvpn
4. sudo apt-get install ca-certificates
5. sudo apt-get install unzip
8. cd ovpn_tcp - For TCP or cd ovpn_udp - For UDP

#HowToNordVPN
Рекомендации по теме
Комментарии
Автор

Having connectivity issues with NordVPN? 🌐
Don’t worry, we have you covered 👍

Nordvpn
Автор

Thanks for sharing. Phew, for a second I thought it awsn't going to work... but then I had to finish the command, by pressing tab! Then Enter.





Thanks again!

sionemanulea
Автор

Yea how about making your windows application cross-platform? It's not difficult, PIA does it. I have computers with Linux and Windows and would like the same ease of use on all devices.

Azoto
Автор

Too much messing about, I will wait for you guys to make it work like the Windows version. I hope I live long enough!!

MichaelBeeny
Автор

I did a few other instructions and nothing
your method works great thank you.

sWt
Автор

ok, ok but how to set up auto connect for Fedora, Debian.

piotrmitras
Автор

That was Really Frustrating and as clear as Mud for a Newbie like me...
So after waiting for several months to retire and redeploy my last ever Windows box, I am now forced to keep it going until NordVPN gets its act together and produce a Windows like utility with hopefully much less ugly and awkward GUI and more features rich as found in IPVanish (My previous VPN).
Is it really that hard to code that nobody so far has been able to write their own app?

grumpy
Автор

Had no problems setting this up on Slackware Linux 14.2 and then tweaking it to auto-connect. Would be nice if there was a simple command line tool to find optimal server that could be pipelined into scripts. I probably need to set up a firewall to make sure all traffic goes over the VPN.

kalliste
Автор

Doen'st work: "write UDPv4: Operation not permitted (code=1)"

gabrielmiranda
Автор

Could you please explain what this scenario is for? As opposed to just typing "nordvpn connect" after installing it? Are you trying to connect two machines together or something?

darkobelisk
Автор

Do you have to do this every time you restart your computer?

charliechapa
Автор

*How to enable autologin on NordVPN server on boot for linux distros*

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

##2.You may be asked to enter your user password to confirm your identity.
##Navigate to the OpenVPN configuration directory with command:
cd /etc/openvpn

##3.Download OpenVPN configuration files with command

##4.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 the ovpn file of the server you like to autoconnect (UDP is better) and copy it to openvpn folder as .conf file(renaming it to something shorter)
##server example us2957.nordvpn.com.udp.ovpn
sudo cp /etc/openvpn/US29.conf

##11.Create auto login file
sudo nano /etc/openvpn/login
(put in it YOUR NordVPN username and password at line1 and line2)
NordVPN_username
NordVPN_password
(to exit editor press control+X, and choose Yes)

##12.Edit the conf file in order where to find your login
sudo nano /etc/openvpn/US29.conf

(search line that says auth-user-pass and add the path of login file)
...
auth-user-pass /etc/openvpn/login
...
(to exit editor press control+X, and choose Yes)

##13.Test if it is working
sudo openvpn --config /etc/openvpn/US29.conf
(to stop the process press control+C)
(if you didnt reboot after installing openvpn and it doesnt pass teh test try rebooting in order openvpn to be enabled)
(if you cant understand if it is successful or not, open chrome/firefox/edge and test with a site who tracks ip NordVPN site at the top shows your IP nad location, see if that changed acordingly to the server you chose by starting and stoping openvpn test)

##14.Make it to autostart when you boot as a service

If you want to stop autologin with that servar and change it you need to disable the service and redo the steps starting from step-10. )
Tested successfully at RaspberryPi at 7th, May'19

Sktus
Автор

This method works for me, which is great becasuse for some reason I can't get it to work using the nordvpn connect command route. Was getting strange errors. Now I can connect to the nord vpn servers perfectly. So, how do I connect to the onion network using these commands? Loving the service so far by the way. Thanks!

mikesmycology
Автор

When I go on a site it states its cannot be resolved. I used this linux box as a Pihole

No-bobd
Автор

Doesn't work on my Linux Mint 18.2 setup. My IP address, city and state and ISP are clearly exposed.

flashcraft
Автор

I have this error in the last step.
Error opening configuration file:

Gerardo
Автор

Works fine on my Kali Linux. Thank you.

dean
Автор

Via openvpn there are always ipv6 dns leaks. Your NordVPN linux client works without leaks, but it doesn't have many features. I can't even choose a server, just 'nordvpn connect country''. Make app so we can use features that we paid for...

lazar
Автор

so does it connect automatically every time i turn on the laptop?

GMknew
Автор

any arch users here does killswitch ON/OFF work properly?

shanes.
welcome to shbcf.ru