User:Rafspiny/NordVPN
This wiki article has unofficial overlays and might have errors
Disclaimer
This tutorial can have errors and contains packages that are not from the main Gentoo packages hence the title is User:Jeff132312342q4323/NordVPN and not NordVPN with that continue onwards with your own caution.
Also just cause it has a username does not mean you cannot edit it (please do fix the mistakes and add information for eselect-repository and etc.) but just that it is not an official package yet.
With that lets go
What is a VPN
A VPN is a virtual private network that enables you to have a secure connection between your device and the internet you are connected to. This is through a VPN / all your data is routed through an encrypted tunnel. This hides your true IP address when accessing the internet. Most VPNs are used by people for a plethora of reasons including but not limited to using restricted services in their country, privacy and etc.
NordVPN
NordVPN is a proprietary VPN provider. NordVPN operates in Panama as the country has no mandatory data retention laws. Furthermore, It does not participate in Fourteen Eyes or Five Eyes alliances. Checkout out the Wikipedia page for more detailed information. On Linux, it is a terminal / command-line-based tool.
Account
NordVPN requires a paid account to access and use its VPN service. To make an account go to the NordVPN's Website.
Installation
To install NordVPN as it is not in the official Gentoo repository you must use/add the nordvpn overlay but if you would like an older version check out all the overlays on the Gentoo Portage Overlays website.
Adding the overlay
Layman (deprecated)
Layman has been deprecated. If you are still using it, please follow the guide here
eselect
Use `eselect` to enable the nordvpn repository.
root #
eselect repository enable nordvpn
To install you need to accept the license and unmask it.
root #
echo ">=net-vpn/nordvpn-3.16.6::nordvpn NordVPN" >> /etc/portage/package.license/nordvpn
You may have to unmask the package too.
root #
echo ">=net-vpn/nordvpn-3.16.6::nordvpn ~amd64" >> /etc/portage/package.accept_keywords/nordvpn
Make sure to synchronize the overlay repository:
root #
emerge --sync
Manual
Go to /var/db/repos
user $
git clone https://gitlab.com/lahouari.dc/nordvpn.git
then go to /etc/portage/repos.conf
then make and edit nordvpn.conf
and add the following lines
[nordvpn]
location = /var/db/repos/nordvpn
Install NordVPN
You can install the NordVPN package by using the following command:
root #
emerge -a net-vpn/nordvpn
and then type yes to install it. You may want to review the use flags of dependencies like net-misc/networkmanager and net-vpn/networkmanager-openvpn to limit the number of packages installed.
Masked Issue
If you have an issue that says it is masked you can do
root #
emerge -a net-vpn/nordvpn --autounmask
then type yes and then do
root #
dispatch-conf
and then type "u" when asked after which you type the previous command
root #
emerge -a net-vpn/nordvpn --autounmask
and press yes to install NordVPN
Groups
You have to add the user to the nordvpn group which you can do by using this command (replace "username" to your username). Also add your user to the plugdev group so that it can modify network connections;
root #
usermod -a -G nordvpn "username"
root #
usermod -a -G plugdev "username"
Do not forget to login again or reboot to make the group changes effective.
Starting and Enabling
OpenRC
You have to start the nordvpn service and enable it with the following commands
root #
rc-service nordvpn start
root #
rc-update add nordvpn default
SystemD
You have to start the nordvpn service and enable it with the following commands
root #
systemctl start nordvpnd.service
root #
systemctl enable nordvpnd.service
Configuration
Login
type in
user $
nordvpn login
This will show you a link to follow
Continue in the browser: https://api.nordvpn.com/v1/users/oauth/login-redirect?attempt=xxxxxxxxxxxxxxxxxxxxxxxx
You log in on your browser and copy and paste the link you get in the following command.
user $
nordvpn login --callback "nordvpn://login?action=login&exchange_token=xxxxxxxxxxxxxxxxxxxxxx"
Welcome to NordVPN! You can now connect to VPN by using 'nordvpn connect'.
Connect
to connect to a random server type in
user $
nordvpn connect
To connect to a server in Germany to connect to a random server type in
user $
nordvpn connect Germany
NordLynx
To use the NordLynx type in
user $
nordvpn set technology nordlynx
Double Vpn
To use Double Vpn type in
user $
nordvpn connect Double_VPN
Obfuscate
To use obfuscate type in
user $
nordvpn set obfuscate on
OpenVPN
To use openvpn type this for openvpn
user $
nordvpn set openvpn on
TCP
Type in this for TCP (only for OpenVPN users)
user $
nordvpn set protocol tcp
UDP
type in this for UDP (only for OpenVPN users)
user $
nordvpn set protocol udp
See Also
External Resources
Known Issues
Currently, after some testing, OpenVPN protocol does not work yet. But good news NordLynx does so considering using it for the time being.