Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Latest commit

 

History

History
55 lines (36 loc) · 1.8 KB

README.md

File metadata and controls

55 lines (36 loc) · 1.8 KB

Change NordVPN Server Command

This is a small script that creates a command to easily change the NordVPN Server on OpenVPN.

It basically does 3 commands.

  1. It copy the desired NordVPN configuration file and rename it to NordVPN.conf.
  2. Add the location of the login file to this configuration file there is no need to input credentials.
  3. Restarts the openvpn service so the new configuration has effect.

Prerequisites

It's assumed that you have downloaded and unzipped the configuration files for NordVPN servers doing the following.

$ cd /etc/openvpn/
$ sudo wget https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip
$ sudo unzip ovpn.zip -d NordVPN-Servers
$ sudo rm ovpn.zip

The /etc/openvpn/login has to be formatted just like this:

username@email.com
password1234

It also assumed that you have openvpn installed and configured, of course.

Installation

You don't need to install anywhere, you can just download it and you can run it from the download folder like any other script (./changenordvpnserverto.sh)

You can clone the repository git clone https://github.com/luispuerto/NordVPN-Server-Changer.git and then you can move the script to the /usr/local/bin folder so it's going to be available to everyone anywhere. Or better yet, you can create a symbolic link.

$ ln -s /etc/openvpn/NordVPN-Server-Changer/changenordvpnserverto.sh /usr/local/bin/changenordvpnserverto

Don't forget to make the script executable:

$ chmod +x /etc/openvpn/NordVPN-Server-Changer/changenordvpnserverto.sh

Usage

$ changenordvpnseverto coNNNN

Where coNNN is the country and number of the server you want to connect. For example us1182. You can see all the servers here.