How to Configure Gluetun for PIA Using Techhut's Guide?

December 25, 2025 3 answers
Asked by TechieTaco123
Hey everyone! I've been trying for a couple of days to get Gluetun set up with Private Internet Access (PIA) following Techhut's tutorial, but I'm hitting a wall. My main problem is that I can't seem to convert the .env file example from the Airvpn tutorial into something that works for PIA. I'm really hoping someone has managed to get this working or can suggest a workaround, as I'd prefer to stick with PIA since I already have a subscription. By the way, I'm not sure if PIA with Wireguard even works with Gluetun, but it seems pretty complex if it does. I'll share the .env file I'm working with below.

Answers

DockerDude42
Have you checked your Docker logs? I had a problem similar while using Proton VPN with the Techhut guide. Instead of just 'America', I had to write 'United States' (with a space, no underscores). The logs will indicate if thatโ€™s where the issue is. Also, make sure to enter the specific port for forwarding that Proton assigns.
Reply to this answer
OpenSourceWizard
According to the GitHub wiki, you canโ€™t use Wireguard natively with PIA. It seems like they only support OpenVPN for direct use. I know it's frustrating, but maybe try to set it up that way instead.
Reply to this answer
TechNinja99
I haven't gotten Wireguard working with Gluetun either, but Iโ€™ve heard of others doing it. There are some tools out there that can help extract the necessary keys from your PIA credentials. I used something similar in the Unraid VPN manager, and it worked for me.
Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions