ProtonVPN to NetworkManager import script
This script will automatically import your ProtonVPN{server/country/securecore
} configuration files
into NetworkManager
, preconfigured with your credentials.
Python >= 3.4
python3-docopt
To install the dependencies on Ubuntu
:
sudo apt-get install python3-docopt
protonvpn-nm-import.py [options] <username> <password>
By default, the script will import all the configuration files in configs
directory (more than 800
).
If a configuration already exists, it removes it before importing the new one.
To import a specific directory, use --config
:
protonvpn-nm-import.py --config configs/tcp/country USERNAME PASSWORD
INFO:root:walking through configs/tcp/country
INFO:root:IMPORT fi.protonvpn.com.tcp.ovpn
INFO:root:IMPORT il.protonvpn.com.tcp.ovpn
INFO:root:IMPORT dk.protonvpn.com.tcp.ovpn
INFO:root:IMPORT pt.protonvpn.com.tcp.ovpn
INFO:root:IMPORT fr.protonvpn.com.tcp.ovpn
INFO:root:IMPORT is.protonvpn.com.tcp.ovpn
To clean your previous config files:
protonvpn-nm-import.py --cleanup
INFO:root:DELETE connection: at.protonvpn.com.tcp
INFO:root:DELETE connection: au.protonvpn.com.tcp
INFO:root:DELETE connection: be.protonvpn.com.tcp
INFO:root:DELETE connection: br.protonvpn.com.tcp
INFO:root:DELETE connection: ca.protonvpn.com.tcp
INFO:root:DELETE connection: ch.protonvpn.com.tcp
INFO:root:DELETE connection: cz.protonvpn.com.tcp
INFO:root:DELETE connection: de.protonvpn.com.tcp
- ProtonVPN: ProtonVPN website
PRs accepted.
Small note: If editing the Readme, please conform to the standard-readme specification.