Skip to main content

Conversion tool from OVPN files into NetworkManager compatible.

Project description

NordVPN Configuration Converter

https://img.shields.io/pypi/v/nordvpn_converter.svg Documentation Status Updates

Purpose

The main goal of this small script is to convert the OpenVPN configuration files (provided by the NordVPN service) into NetworkManager compatible files.

Features

  • Bulk conversion done in a matter of seconds

How to install

System-wide

pip3 install nordvpn_converter

Virtual environment

virtualenv --python=python3 nordvpn_converter
cd nordvpn_converter
pip install nordvpn_converter

From sources

The sources for NordVPN Configuration Converter can be downloaded from the Github repo.

You can either clone the public repository:

$ git clone git://github.com/cnavalici/nordvpn_converter

Once you have a copy of the source, you can install it with:

$ python setup.py install

How to use

Grab the required files

In order to generate the compatible NetworkManager files, you have to login to your NordVPN account, go for My Account section, Download Area, Linux and download .OVPN configuration files and CA & TLS certificates.

After this, you’re gonna end up with 2 archives, config.zip and ca_and_tls_auth_certificates.zip.

Create a new folder and unpack them there:

mkdir ~/NordVPN_Data
unzip -d ~/NordVPN_Data ~/Downloads/config.zip
unzip -d ~/NordVPN_Data ~/Downloads/ca_and_tls_auth_certificates.zip

Let’s assume that you have now the following structure:

~/NordVPN_Data/CA\ and\ TLS\ auth\ certificates/*key
~/NordVPN_Data/CA\ and\ TLS\ auth\ certificates/*crt
~/NordVPN_Data/*.ovpn

Run the conversion

The regular help information is available:

usage: nordvpn_converter [-h] [--source SOURCE] [--destination DESTINATION]
                     [--certs CERTS] [--user USER] [-v] [--version]

This is a simple conversion tool.

optional arguments:
  -h, --help            show this help message and exit
  --source SOURCE       Source folder for ovpn config files
  --destination DESTINATION
                    Destination folder for output files
  --certs CERTS         Source folder for certificates
  --user USER           Username used for the NordVPN connection
  -v, --verbose         Verbose mode
  --version             show program's version number and exit

And based on our example:

nordvpn_converter --source ~/NordVPN_Data --certs ~/NordVPN_Data/CA\ and\ TLS\ auth\ certificates --destination /tmp/output --user jbravo

Just note that the user is not the local one, but the NordVPN one. The files will be automatically generated with the current local username.

The ouput folder will contain now a lot of NetworkManager compatible files.

Install the NetworkManager files

Move the output files into NetworkManager connections folder and then process them.

cp /tmp/output/* /etc/NetworkManager/system-connections
chmod 600 *
nmcli conn reload

Now you should be able to see those connections also in the NetworkManager applet from your graphical environment.

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1 (2016-11-28)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nordvpn_converter-1.0.1.tar.gz (25.2 kB view details)

Uploaded Source

File details

Details for the file nordvpn_converter-1.0.1.tar.gz.

File metadata

File hashes

Hashes for nordvpn_converter-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3ed2fd564820b1205c1691bfd254f5552bf844429b8cb7bf77a159067b67b48b
MD5 6845d47b39f3194824f40166f84b8f52
BLAKE2b-256 07f914fba8e4a394667e4c347a0c98f7a1fa213cd5aaed99b8bb1eb3658448c0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page