Skip to content

Forked update for the PIA Wireguard config #142

Description

@Ephemeral-Dust

URL to the Wiki page

https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/private-internet-access.md

What's missing?

I recently just worked through setting up my gluetun instance to use wireguard with PIA and while the documentation and everything is adequate, the script that was linked was 3 years old and not maintained. So I forked it and updated it with some QoL features. I did put in a PR that Kyle may merge at some point and if he does, then ignore this.

But generally my updated fork (https://github.com/Ephemeral-Dust/pia-wg-config) allows the following :

Two new flags:

  • --server, -s which will add the server's common name to the config file
  • --port-fowarding, -p which will force the script to only use servers that support port forwarding.

These two flags make setting up PIA wireguard with port forwarding much simpler, in addition I updated the script to use PIA's V6 json server list as the old script was still on V4.

A QoL thing that would be neat to add, but would likely require something on gluetuns side, is if you bind the wg0.conf to gluetuns wg0.conf, it would be able to read the username, password, and server names from it, so the only environment flags you would need to set beyond the custom provider ones are VPN_PORT_FORWARDING=on and VPN_PORT_FORWARDING_PROVIDER=private internet access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions