Code Monkey home page Code Monkey logo

nordvpn-server-changer's Introduction

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:

[email protected]
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.

โ€‹

nordvpn-server-changer's People

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.