Make it easy to use NordVPN with OpenVPN. Bash script to download nordvpn configs, authenticating and connecting/disconnecting from recommended servers.
- Make sure you have "openvpn", "unzip" and "wget" in your path.
- Download the "nordvpn.sh" to your path, call it "nordvpn"
- 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; })
];
nordvpn download
- Downloads all NordVPN's config files to ~/.config/nordvpn_config/ and modifies them to use the authentication file at ~/.config/nordvpn_config/authnordvpn login
- Asks for service login (username and password), which is stored in the auth file.
nordvpn
- Prints help textnordvpn c
- Automatically fetches the current recommended server and connects to it.nordvpn d
- Disconnects from OpenVPN.nordvpn s
- Shows current OpenVPN status
nordvpn <server>
- connects to a specfic server. For example: "nordvpn dk205"nordvpn ?
- prints the current recommended servernordvpn ??
- opens the nordvpn "recommended server" web page in firefox.nordvpn search <keyword>
- searches among the config files for the specified keywords. For example: "nordvpn search jp"
- Include unzip and wget in the NixOS version of the sh script, so it doesn't rely on them being in your path.
Feel free to make pull requests to improve the script :)