-
-
Notifications
You must be signed in to change notification settings - Fork 391
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
Bug: NAT-PMP port forwarding not working after internal VPN restart due to unhealthy health check #1749
Comments
Can you please try the image (only amd64) EDIT: corresponding PR is #1874 |
doesn't seem to be working for me, seems to be crashing:
|
Getting the same error with Proton VPN with Raspberry Pi 4 / Ubuntu host. The latest tagged image does not give that error but port forwarding does not work on container restart. |
Side note I store my /tmp/port_forward in a volume that persists between restarts. I need this so another container can monitor the port forward value.
|
@akutruff I'm working on it, it's kind of complicated, so please be patient for a few days. It's my priority so I can release a v3.36.0 with protonvpn (and pia) port forwarding fixed up. |
With these port forwards, there is clearly some lag from when user requests that the provider establishes the forward ... understood ... and then when the provider cannot service that request (eg, its a shared ip address and someone else already has 6881 bound, but for someone else, for example ... or they had it bound for your previous vpn but have not torn it down and freed it yet) ... then it doesn't forward. Do users have an misguided expectation that gluetun/qdm12 is going to "solve" that? |
I don't have that expectation and I never saw this problem in their offical client. And I don't see why a reconnect shouldn't fix this, if a complete restart of the container does. But if the error appears, it stays even after multiple reconnects, but a restart solves it every time. |
Can you try image
You mean when the VPN restarts internally without a container restart right? @gmillerd you're talking about another problem, this is about the port forwarding not re-triggering on a vpn internal restart in Gluetun (it's literally a bug in gluetun). |
Oh I didn't mean to apply any pressure. Was just adding more info. I really appreciate your work on this project, and take your time! |
Running this build for the first time on a completely fresh stack yields an error:
For the
Side note: I switch from sharing Another side note that doesn't involve this issue, but you may want to note it: it's weird that I have to use the conrol server's openvpn endpoint to get the value of a port forward that was set for a wireguard connection. |
Are you sure? The error stack trace you have mentions
It basically 'deadlocks' somewhere, especially when port forwarding needs to be restarted. That's why I just threw out most of the existing code and rewrote it to be a bit simpler/cleaner/structured, hopefully to squash out any deadlocks. In my local testing, it seems to work fine at program launch, program stop, or when the vpn goes unhealthy.
💯 percent, but basically we would need a |
I repulled. Yep, looks like something had been pushed since I tried that image. No error is showing up now. It's running, and I'll leave it running. Will report back if things get weird again. For this build, should I try to make sure |
just wanted to chime in and it does seem to not get errors with this tagged image. I have been getting a different issue in addition where it seems to port forward, but when I check if the port is opened, it doesn't appear to be. Not sure if the two are related |
Ok the original issue should be solved on the latest image + future release v3.36.0 with commit 7120141 For other issues if you encounter them again on the latest image (built from 2023-09-23) such as:
Please create new issues 😉 Thanks!! |
Is this urgent?
None
Host OS
Synology NAS
CPU arch
x86_64
VPN service provider
ProtonVPN
What are you using to run the container
docker-compose
What is the version of Gluetun
Running version latest built on 2023-07-09T12:26:38.469Z (commit a681d38)
What's the problem 🤔
WireGuard VPN connection to Proton restarts from time to time due to unhealthy health check. The VPN connection itself is restored just a few seconds later, so no real issue there, but for some reason the port forwarding does not „restart“. I just get port forwarding working again with a full container restart which is unpreferable due to all connected containers are failing the connection and also need to be restarted.
Share your logs
Share your configuration
The text was updated successfully, but these errors were encountered: