Port forwarding using manual connections script

I’ve worked at this for days, but I can’t seem to figure out how to transfer forward using the tools provided in their pia-foss repository. I ran all of the scripts as instructed, but every time I try to port forward, I receive the problem ‘The payload_and_signature variable does not have an OK status.’. After more investigation, I discovered that obtaining the signature results in the response ‘{ “status”: “ERROR”, “message”: “Unauthorized client” }’. This is the command I use to execute the script.

sudo PIA_TOKEN=xxxxxxxx PF_GATEWAY=178.249.214.44 PF_HOSTNAME=ontario437 ./port_forwarding.sh`

Do you have any clue what may be going on?

4 Likes

Maybe they recently broke the API; this link seems relevant: Can't port forward after setting up WireGuard · Issue #193 · pia-foss/manual-connections · GitHub
I wonder if my scripts are affected by this too.

4 Likes

From what I see in your GitHub issue, if you’re using a US server, they don’t support port forwarding. You should try a server that does. You can use the standard Linux client, especially on Debian-based systems. Setting up port forwarding isn’t too complicated.

4 Likes

I’m using headless Debian. Can I still set up the client there? I figured out the US issue; I’ve been connecting to Canada only for this.

4 Likes

The Linux client works on CLI Debian, and I have it running myself. It might complain about a library that you’ll need to install, and there’s a switch for running it in headless mode, something like ‘-background’, if I remember correctly.

4 Likes

Do you have any guides for that? I can’t find anything that explains how to install it like that.

2 Likes