Skip to content

Script to import ProtonVPN configuration files into NetworkManager automatically

License

Notifications You must be signed in to change notification settings

Wenzel/protonvpn-nm-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

protonvpn-nm-import

standard-readme compliant

ProtonVPN to NetworkManager import script

Table of Contents

Overview

This script will automatically import your ProtonVPN{server/country/securecore} configuration files into NetworkManager, preconfigured with your credentials.

Requirements

  • Python >= 3.4
  • python3-docopt

Install

To install the dependencies on Ubuntu:

sudo apt-get install python3-docopt

Usage

Import

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

Cleanup

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

References

Maintainers

@Wenzel

Contributing

PRs accepted.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

GNU General Public License v3.0

About

Script to import ProtonVPN configuration files into NetworkManager automatically

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages