Private Internet Access Wireguard Configuration Fork
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Harrison Sand 0ee79e5939
Print out selected region.
5 years ago
README.md Update README.md 5 years ago
ca.rsa.4096.crt Initial commit 5 years ago
generate-config.py Print out selected region. 5 years ago
piawg.py Cleaned up key generation. 5 years ago
requirements.txt Initial commit 5 years ago

README.md

pia-wg

A WireGuard configuration utility for Private Internet Access

This is a Python utility that generates WireGuard configuration files for the Private Internet Access VPN service. This allows you to take advantage of the WireGuard protocol without relying on PIA's proprietary client.

This was created by reverse engineering the manual-connections script released by PIA. At this stage, the tool is a quick and dirty attempt to get things working. It could break at any moment if PIA makes changes to their API.

pia-wg should run on both Windows and Linux.

Windows

  • Install the latest version of Python 3
    • Select "Add Python to environment variables"
  • Install WireGuard

Open a command prompt and navigate to the directory where you placed the pia-wg utility. The following commands will create a virtual Python environment, install the dependencies, and run the tool.

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
generate-config.py

Follow the prompts. When finished, you can exit the virtual environment with the deactivate command.

The script should generate a .conf file that can be imported into the WireGuard utility.

Linux

todo

Check everything is working

Visit https://dnsleaktest.com/ to see your new IP and check for DNS leaks.