Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

port forwarding no longer working #182

Open
tcurdt opened this issue Nov 25, 2023 · 5 comments
Open

port forwarding no longer working #182

tcurdt opened this issue Nov 25, 2023 · 5 comments

Comments

@tcurdt
Copy link

tcurdt commented Nov 25, 2023

This here fails:

  payload_and_signature="$(curl -s -m 5 \
    --connect-to "$PF_HOSTNAME::$PF_GATEWAY:" \
    --cacert "ca.rsa.4096.crt" \
    -G --data-urlencode "token=${PIA_TOKEN}" \
    "https://${PF_HOSTNAME}:19999/getSignature")"

with a connection refused

* Connecting to hostname: 10.12.112.24
*   Trying 10.12.112.24...
* TCP_NODELAY set
* Expire in 200 ms for 4 (transfer 0x1360960)
* connect to 10.12.112.24 port 19999 failed: Connection refused
* Failed to connect to 10.12.112.24 port 19999: Connection refused
* Closing connection 0
curl: (7) Failed to connect to 10.12.112.24 port 19999: Connection refused

As a paying customer I am utterly annoyed there is no proper support for manually using wireguard.
And now even the openvpn stopped working properly.

What's going on?

@aarsenca
Copy link

aarsenca commented Dec 2, 2023

I believe I have the same problem. Until this morning, the port forwarding script had been running non-stop for close to two months on my Raspberry Pi. It stopped by itself this morning. I just tried reconnecting (wireguard, autoconnect) and getting a new port. The script failed with this error: The payload_and_signature variable does not contain an OK status. I tried with openvpn and other specific servers and got the same error. I also tried with piactl: I was able to connect (wireguard and openvpn, region auto, requestportforward true), but get portforward returned "unknown". I spent about 45 minutes chatting with PIA Support. The issue was escalated. I just received an email saying basically that they were able to replicate the problem but magically, they tried several times with the same run-setup.sh command I was using and they ended up getting a port. So their suggestion is to keep trying the same thing over and over again and it should work... Needless to say, it has not worked for me yet!

@aarsenca
Copy link

aarsenca commented Dec 2, 2023

For what it's worth, I just got a port with openvpn and preferred server ca-montreal.

@et304383
Copy link

et304383 commented Feb 12, 2024

I am having this issue as well. Can't establish a conenction to the server. It's like they shut down port 19999 ?

@et304383
Copy link

et304383 commented Feb 12, 2024

Seems that something has changed with how you must port forward. Before I could bind to my public IP. Now I have to bind to the 10.x route/gateway. So if you had custom scripts like I do, change that part. Seems to have fixed the issue for me.

port_forwarding_gateway=$(route | grep -P '^0\.0\.0\.0' | awk '{print $2}')

ETA: it also seems to matter what hostname you choose for your particular endpoint. I'm using Swiss and zurich406 works while zurich411 returns an empty response.

@aarsenca
Copy link

I still have this issue once in a while. It is usually due to something failing on PIA's side. When it happens, I switch from wireguard to openvpn and it usually gives me a port. If it doesn't, I wait a few minutes and try again. When it starts working again, I switch back to wireguard and I usually get a port. I can also try with "auto" instead of a specific server, but usually it does not fix the problem. Sometimes, it can take a few hours before it starts working properly. It's not a real solution, but it's my solution until I find a better one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants