Giter Club home page Giter Club logo

nordvpn-openvpn.sh's Introduction

nordvpn-openvpn.sh

Make it easy to use NordVPN with OpenVPN. Bash script to download nordvpn configs, authenticating and connecting/disconnecting from recommended servers.

Install

Regular

  1. Make sure you have "openvpn", "unzip" and "wget" in your path.
  2. Download the "nordvpn.sh" to your path, call it "nordvpn"

NixOS

  1. Add the following to your config
users.users.<your username>.packages = 
[
  (import (fetchTarball https://github.com/wanieru/nordvpn-openvpn.sh/archive/main.tar.gz) { inherit pkgs; })
];

How to use

First time use

  1. nordvpn download - Downloads all NordVPN's config files to ~/.config/nordvpn_config/ and modifies them to use the authentication file at ~/.config/nordvpn_config/auth
  2. nordvpn login - Asks for service login (username and password), which is stored in the auth file.

Connecting and disconnecting

  1. nordvpn - Prints help text
  2. nordvpn c - Automatically fetches the current recommended server and connects to it.
  3. nordvpn d - Disconnects from OpenVPN.
  4. nordvpn s - Shows current OpenVPN status

Special use

  1. nordvpn <server> - connects to a specfic server. For example: "nordvpn dk205"
  2. nordvpn ? - prints the current recommended server
  3. nordvpn ?? - opens the nordvpn "recommended server" web page in firefox.
  4. nordvpn search <keyword> - searches among the config files for the specified keywords. For example: "nordvpn search jp"

Todo

  1. Include unzip and wget in the NixOS version of the sh script, so it doesn't rely on them being in your path.

Contribute

Feel free to make pull requests to improve the script :)

nordvpn-openvpn.sh's People

Contributors

sebbadk avatar wanieru 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.