-
Notifications
You must be signed in to change notification settings - Fork 1.4k
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
No DNS on Windows client when using exit node #1535
Comments
Thanks for the detailed report. You're hitting some of the same issues as #1533, albeit different in the details. Your local DNS server going unreachable when enabling the exit node is not normal on a Windows client, in that I thought we were explicitly allowing DNS traffic to the local resolver (we don't yet do this on all platforms, but a Windows client should be doing the right thing). In your initial configuration, can you confirm that you had Magic DNS disabled, and no DNS resolvers set in the Tailscale admin panel? In that configuration, Windows should keep using the local resolver, and the firewall rules we install should allow that traffic to flow. I'm digging through logs and trying to reproduce this now, but if you could confirm that's how you were set up that'd be great. |
The problem you seem to be having in the other configuration (using 8.8.8.8 as the resolver) is down to ACLs: your ACL config in the admin panel doesn't allow all traffic to your exit node, so all your outbound connections are being dropped. If you add an ACL entry that permits you to talk to |
Correct. I don’t normally use either of those features. |
@danderson a few other tidbits:
Please let me know if there is other information I can provide.
Ah, that makes sense. I'll try it, but yes, ideally I would keep using the DNS servers on the LAN. Thanks much for looking into it! |
I tried enabling exit mode ( While doing this I noticed the Tailscale admin panel is complaining that this second exit node is "Unable to relay traffic" and says "this machine has IP forwarding disabled and cannot relay traffic. Please enable IP forwarding on this machine to use relay features like subnets or exit nodes." This machine has |
The exit node function currently implements both IPv4+IPv6, there isn't a notion of an IPv4-only exit node. So if it sees net.ipv6.conf.all.forwarding not set it will flag it, even if you don't really need or use IPv6 connectivity. If you are able to set net.ipv6.conf.all.forwarding the admin panel should mark it as useable as an exit node. |
I noticed something else on Windows after this comment in the related macOS issue: #1544 (comment) When I have the exit node mode on, I get timeouts when trying to use
|
1.19.x builds in https://pkgs.tailscale.com/unstable/ include functionality to forward DNS queries to the exit node, which is expected to resolve most issues like this. This functionality will be in the 1.20 release build. Both the Windows client and the exit node would need to be running 1.19.x or later. |
Just installed unstable 1.19.187 on my Debian machine, connected to an exit node and DNS now works. Been trying to work it out for hours! When can I expect to see a stable build with the fixes? Thanks! |
1.20.1 is the current stable version for Linux, and contains the functionality to forward DNS queries to the exit node. Given the positive report, I'm going to close this as fixed. |
From: https://forum.tailscale.com/t/no-dns-when-using-exit-node/477:
Tailscale version: 1.6.0 on both nodes
Your operating system & version:
Following https://tailscale.com/kb/1103/exit-nodes, I ran
sudo tailscale up --advertise-exit-node
on the Ubuntu server. I allowed the exit node from the admin console. No problem so far.On the Windows client, I selected “Use exit node” and picked the server I just enabled. At this point I can ping external IPs on the internet, so some connectivity is working, but… I can’t browse anything. It seems DNS is not working.
I tried enabling Magic DNS (normally disabled). I also tried setting two DNS servers on the admin console – 1.1.1.1 and 8.8.8.8 (also normally left blank / disabled). This makes no difference.
I think at this point I’ve narrowed it down to, my DNS servers on the LAN go unreachable when routing via the exit node.
Ideally, I would like to continue using my LAN DNS servers while routing other traffic via the exit node, because I like the benefits of Pi-hole. If that’s not an option, I would be fine using external DNS servers while routed via the exit node. It’s not clear how to do either of these things. There is no mention of DNS at all in the exit node doc, so not much help there.
I also commented on #1527, where @danderson noted:
IP of Ubuntu exit node: 100.110.232.113
IP of Windows client: 100.83.119.13
LAN of Windows client: 10.0.0.0/24
The (2) DNS servers are on the same LAN. When the exit node feature is enabled, I cannot resolve any queries, and if I try to ping the DNS servers' LAN addresses in Powershell, I get:
The text was updated successfully, but these errors were encountered: