-
Notifications
You must be signed in to change notification settings - Fork 309
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
Broken DNS behind VPN on windows #8156
Comments
Submited the following issue in the upstream and they agreed to revert the PR that caused the issue in here: containers/gvisor-tap-vsock#467 |
Not sure if this is DNS related, but I can't pull any images when connected to the corporate VPN. Commands done in WSL Ubuntu (not rancher-desktop WSL)
curl on the same machine works
Since the domain is translated into the IP by rancher, this is not a DNS error, correct? I'm on WSL2, v2.4.10.0, Win 11, rancher 1.17.1., using the new mirrored network mode EDIT: Interesting, after restarting WSL and Rancher Desktop, after VPN connection, I get now a
Maybe it's DNS related. Logging into rancher-desktop distribution:
So what is 192.168.127.1? |
That looks to be the gateway IP hard coded in gvisor-tap-vsock @jankap have you checked the Rancher Desktop WSL Proxy settings? Someone noted that it was causing them issues in 1.17.1 #8055 (comment) |
I will. Please give me a few days, I'm sick at home, just wanted to comment, thanks :) |
I'm having a similar issue, don't know if it's related or something new, i'm behind a corporate vpn and when pulling images the docker host freezes and looses the connection to the net after some time eg. start pulling an image, many layers are pulled but suddenly it hangs: If the process is cancelled and rerun i get this error:
This is the same for any repository i pull from:
I need to restart Rancher Desktop to get it working again, and after many tries i might get lucky and pull all layers before it freezes. (I'm on windows 11 and Rancher Desktop 1.17.1) |
I tried Version: 1.17.1-369-gc3ccaba62. The error changed.
When disconnecting VPN, everything works.
Yes, the proxy integration is currently disabled. Is there anything I can do to support searching the issue? Docker Desktop works BTW. |
@jankap, thanks for testing it out! One thing I suspect might be causing issues is the mirrored network mode in WSL, which we don't officially support. Are you able to disable it, or is it a must-have for your setup? Also, could you try pulling from the Windows CMD terminal on the host to see if you get a different result? |
@Nino-K the mirrored network mode is awesome because it gets rid of all kinds of issues with DNS, proxies, etc in WSL - no manual settings needed anymore, no messing around with resolv.conf etc. I think it's going to become the standard mode in the future. But yes, I tried to disable the mode, used NAT again, and restarted WSL and Rancher. No change. From inside WSL:
From host powershell:
Is there any way to debug from inside rancher-desktop or rancher-desktop-data? How to find out if it's DNS or proxy related? I have not set any proxies, because I'm not sure how to do that, see #4289 |
Trying to figure out if it's a DNS issue, you can do |
As previously reported (#8088, #8055, and #8058), the DNS lookup behind the VPN was broken in version 1.17. The root cause was an upgrade to gvisor-tap-vsock v0.8.1. As part of the fix, we have downgraded it to v0.7.5, which should resolve the issue in version 1.17.1.
Additionally, we should investigate the fix in the upstream gvisor-tap-vsock repository and consider contributing a pull request to address the issue.
The text was updated successfully, but these errors were encountered: