Closed qw3r7yju4 closed 3 months ago
@qdm12 is more or less the only maintainer of this project and works on it in his free time. Please:
I am having this same issue as of about 6 days ago. If I set the firewall setting to 'off' then it connects, but it says only to do this for debugging purposes.
Container Variable: FIREWALL Turn on or off the container built-in firewall. You should turn off for debugging purposes only.
I am having this same issue as of about 6 days ago. If I set the firewall setting to 'off' then it connects, but it says only to do this for debugging purposes.
Container Variable: FIREWALL Turn on or off the container built-in firewall. You should turn off for debugging purposes only.
I can confirm turning firewall off and VPN connects and I am still able to access my passed thru containers and they function as advertised
But I can also confirm turning off the firewall turns off the kill switch for tunnel. I was downloading on my public IP. Hopefully it wasnt for long...
I'm facing the same issue with a different VPN provider where I use WireGuard instead of OpenVPN like you. Running exec ash
and then doing nslookup www.internic.net
it looks like it can't access 1.1.1.1 (Cloudflares DNS), and then just locks up retrying forever.
From the logs:
gluetun-1 | 2024-07-21T12:59:18Z INFO [wireguard] Wireguard setup is complete. Note Wireguard is a silent protocol and it may or may not work, without giving any error message. Typically i/o timeout errors indicate the Wireguard connection is not working.
gluetun-1 | 2024-07-21T12:59:21Z INFO [dns] downloading DNS over TLS cryptographic files
gluetun-1 | 2024-07-21T12:59:33Z ERROR [vpn] getting public IP address information: fetching information: Get "https://ipinfo.io/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
gluetun-1 | 2024-07-21T12:59:36Z WARN [dns] cannot update files: Get "https://www.internic.net/domain/named.root": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
gluetun-1 | 2024-07-21T12:59:36Z INFO [dns] attempting restart in 20s
gluetun-1 | 2024-07-21T12:59:38Z INFO [healthcheck] program has been unhealthy for 16s: restarting VPN
I encountered this error with a previously well running image. Doing a docker compose pull
and retrying had no effect, the logs are the same.
I am also encountering this issue suddenly. I am running three gluetun containers on a Docker host, and two of the three are experiencing these issues, while the third one is still working (all running the same image, v3.38.0).
I have the same problem (I'm using PIA), I also found this inside the log
ERROR [vpn] getting public IP address information: fetching information: too many requests sent for this month from https://ipinfo.io/: 403 403 Forbidden
I don't think that's the cause but a consequence of this bug. Instead of using ipinfo to get the IP address I suggest to get it from this url:
https://1.1.1.1/cdn-cgi/trace
Updated server list and my VPN works again.
Unfortunately, in my case, refreshing the server list didn't solve the problem and neither the other steps described in the wiki
Ok I got it working, I had the env variable SERVER_REGIONS: Netherlands
in my docker compose, I removed it and now the problem is gone
Having same issue, none of the fixes here are working Issue seems to be with wireguard. OpenVPN protocol works.
I'm running proton vpn with wireguard protocol and port forwarding enabled and got the following error:
2024-07-25T14:14:09Z ERROR [vpn] getting public IP address information: fetching information: Get "https://ipinfo.io/": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
This is a very generic issue, so closing it.
@ehauk Where did you even find Turn on or off the container built-in firewall. You should turn off for debugging purposes only.
. FIREWALL
is undocumented for a reason, so that you don't shoot yourself in the foot. Anyway, since this is not the first time I see this misused, I renamed the variable to be FIREWALL_ENABLED_DISABLING_IT_SHOOTS_YOU_IN_YOUR_FOOT
so it's clear... you should not disable it.
@massijay
I don't think that's the cause but a consequence of this bug. Instead of using ipinfo to get the IP address I suggest to get it from this url:
https://1.1.1.1/cdn-cgi/trace
You have the alternative to use PUBLICIP_API=ip2location
. https://1.1.1.1/cdn-cgi/trace does not return useful information on the location. Also this is a non-critical error, it's just the public ip information cannot be fetched because ipinfo blocked you.
Ok I got it working, I had the env variable SERVER_REGIONS: Netherlands in my docker compose, I removed it and now the problem is gone
Number 2 of the healthcheck page states: The VPN server crashed 💥, try changing your VPN servers filtering options such as SERVER_REGIONS
......
@Papierkorb The log states Wireguard setup is complete. Note Wireguard is a silent protocol and it may or may not work, without giving any error message. Typically i/o timeout errors indicate the Wireguard connection is not working.
. This is exactly what you see, the connection doesn't work. Not a Gluetun problem, but a config one (i.e. credentials) or a VPN server one. Try changing server etc.
Closed issues are NOT monitored, so commenting here is likely to be not seen. If you think this is still unresolved and have more information to bring, please create another issue.
This is an automated comment setup because @qdm12 is the sole maintainer of this project which became too popular to monitor issues closed.
Just for the record, I wasn't saying to run it with the firewall turned off. I was only stating that for troubleshooting information that may lead to a solution. The container was working, it updated and then it didn't.
This is a very generic issue, so closing it.
@ehauk Where did you even find
Turn on or off the container built-in firewall. You should turn off for debugging purposes only.
.FIREWALL
is undocumented for a reason, so that you don't shoot yourself in the foot. Anyway, since this is not the first time I see this misused, I renamed the variable to beFIREWALL_ENABLED_DISABLING_IT_SHOOTS_YOU_IN_YOUR_FOOT
so it's clear... you should not disable it.@massijay
I don't think that's the cause but a consequence of this bug. Instead of using ipinfo to get the IP address I suggest to get it from this url:
https://1.1.1.1/cdn-cgi/trace
You have the alternative to use
PUBLICIP_API=ip2location
. https://1.1.1.1/cdn-cgi/trace does not return useful information on the location. Also this is a non-critical error, it's just the public ip information cannot be fetched because ipinfo blocked you.Ok I got it working, I had the env variable SERVER_REGIONS: Netherlands in my docker compose, I removed it and now the problem is gone
Number 2 of the healthcheck page states:
The VPN server crashed 💥, try changing your VPN servers filtering options such as SERVER_REGIONS
......@Papierkorb The log states
Wireguard setup is complete. Note Wireguard is a silent protocol and it may or may not work, without giving any error message. Typically i/o timeout errors indicate the Wireguard connection is not working.
. This is exactly what you see, the connection doesn't work. Not a Gluetun problem, but a config one (i.e. credentials) or a VPN server one. Try changing server etc.
@qdm12 when using gluetun in kubernetes as part of a pod vpn-gateway using cilium vxlan it is necessary to disable the firewall. Kubernetes has it's own network policies. Even though this configuration was undocumented, changing it was still a breaking change for many people and not an easy one to debug when gluetun is a single piece of a bigger component and suddenly stops working.
Is this urgent?
Yes
Host OS
Unraid 6.12.8
CPU arch
x86_64
VPN service provider
ExpressVPN
What are you using to run the container
Unraid
What is the version of Gluetun
docker latest and v3.35.0
What's the problem 🤔
VPN no longer connects.
Share your logs (at least 10 lines)
Share your configuration