Private Internet Access Wireguard

After days of messing about trying to create a wireless access point with VPN on my RPi4 I randomly came across PiFi… what a relief. It’s been HUGE for me. I don’t want a vpn on all the time, but I also don’t want to mess about with apps etc (I always forget to turn them on) so having a separate WiFi network with VPN has been ideal for me. However, I’ve used Private Internet Access (PIA) for years and years, again very light usage her and there. But I cannot for the life of me work out how to use wireguard with the PiFi setup. I have a PiFi kit arriving tomorrow, but does anyone have any idea how I can make this work?

Thanks so much

PIA only let you download OpenVPN and not Wireguard but there’s a workaround that’s pretty easy

I’ll try and find time tonight and post a quick how-to on how to export WG Files for PIA

Ok found it - you need to use Raspberry Pi OS / Linux:

Paste this in terminal (I tend to go line by line)

sudo apt install git python3-venv wireguard openresolv
git clone https://github.com/hsand/pia-wg.git
cd pia-wg
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Then when you want a .conf file you just run

python3 generate-config.py

It’ll ask you to pick a region and enter username/password and give you a .conf file you can upload in the app

Github here:

Annoying that they don’t just give us it in the admin panel - but it’s maybe 3 mins to install and can generate .conf that work indefinitely. Not sure why they make it harder than ovpn

Amazing thanks so much for helping to get that setup. I’m going to use if for now but if it becomes a pain to keep doing I’ll just change providers when my sub runs out. Thanks so much again you’re a star