Conversion tool from OVPN files into NetworkManager compatible.
Project description
NordVPN Configuration Converter
Purpose
The main goal of this small script is to convert the OpenVPN configuration files (provided by the NordVPN service) into NetworkManager compatible files.
Free software: GNU General Public License v3
Documentation: https://nordvpn-converter.readthedocs.io.
Requires python3
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file nordvpn_converter-1.0.1.tar.gz
.
File metadata
- Download URL: nordvpn_converter-1.0.1.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ed2fd564820b1205c1691bfd254f5552bf844429b8cb7bf77a159067b67b48b |
|
MD5 | 6845d47b39f3194824f40166f84b8f52 |
|
BLAKE2b-256 | 07f914fba8e4a394667e4c347a0c98f7a1fa213cd5aaed99b8bb1eb3658448c0 |