NordVPN cli manager

Here is a script I just put together to manager/ setup nordvpn sessions.
It can currently:

  • Update and install server list.
  • Get a recommended server based on your location.
  • Select a random server from your current server list.
  • Select to use UDP or TCP (usable with recommended and random).
  • Select which country you’d like to connect to (usable with recommended and random).
  • Let’s you save your username/password and use openvpn’s built in credential manager.
  • Checks your IP before and after and prints to screen what they are and where they are located.
  • You are able to do a status check to see if you are still connected and what your IP is.
  • You can also append an openvpn argument to your selected ovpn file if you need an advanced option.

I’ll be adding a looping function were it checks at a specified interval if it is connected and if not reconnect.

If you are using NordVPN on linux please check it out.

Here’s the github link github

Thanks in advance to anyone who provides some constructive feedback.