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.
3 Answers
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.
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.
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.

Related Questions
How To Get Your Domain Unblocked From Facebook
How To Find A String In a Directory of Files Using Linux