Skip to content

Tailscale seemingly interferes with internet connectivity #6891

Closed

Description

@skarra

What is the issue?

Occasionally when Tailscale is enabled I lose the ability to reach the internet. It gets fixed after turning Tailscale off, so my first guess is something to do with the Tailscale config. This has happened to me on Android as well as MacOS Monterey. It is not clear what the trigger is because it does not happen all the time. For e.g. right now as I file this Tailscale is enabled:

image

Is there anything I can do to debug this a little more?

Steps to reproduce

No response

Are there any recent changes that introduced the issue?

No response

OS

macOS, Android

OS version

Monterey; Android 12

Tailscale version

1.34.1 (app store)

Bug report

BUG-d62ca7b2223acaa6f8def36043fc4ec13f9f2e0e0548594fc9727a72d78676dd-20230104081918Z-53c6c8975c5f5abb

Activity

  1. matan7890 commented on Jan 4, 2023

    @matan7890

    If you disable "Use Tailscale Subnets" does the connection works as intended? If so, could it be that you have an advertised network in your tailscale network with the same network subnet as your current network?

  2. alex-robbins commented on Jan 5, 2023

    @alex-robbins

    Even with no tailscale subnets configured and when not using an exit node, I've had this issue on Android recently (e.g. browser can't reach the internet until I turn off tailscale). It seems like it only happens when I'm not on Wi-Fi, and my cellular IP address is in the 10.x.x.x range, so these two comments make me wonder if this is due to CGNAT. [1] [2]

    @skarra does that sound like it could be the case for you too?

  3. skarra commented on Jan 5, 2023

    @skarra
    Author

    Matan, I can check toggling that switch next time it happens; but other than that I could not follow what you are saying. Tailscale is installed on all the nodes I am interested in, and I have not done anything to actually set up one of the nodes as a tailscale subnet router.

    Alex,

    Issue #6739 seems similar enough, but FWIW I am seeing the problem on both Android and Mac.

    On Android it has happened only when on cellular data (not on Wi-Fi). I have not checked the IP addr when it happened then. But on MacOS this happens on Wi-Fi (there is no cellular data). ifconfig on the mac showed this when I could not ping google.com:

    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    	options=400<CHANNEL_IO>
    	ether 98:01:a7:99:b5:6f 
    	inet6 fe80::18f0:a725:fa9e:7cc9%en0 prefixlen 64 secured scopeid 0x4 
    	inet 192.168.86.29 netmask 0xffffff00 broadcast 192.168.86.255
    	inet6 fd7c:facb:3f51:0:cee:b9f5:1225:9cbb prefixlen 64 autoconf secured 
    	nd6 options=201<PERFORMNUD,DAD>
    	media: autoselect
    	status: active
    
  4. matan7890 commented on Jan 5, 2023

    @matan7890

    I would check the routing table when this happen again, maybe it's a routing problem?

  5. daavidb commented on Jan 5, 2023

    @daavidb
  6. southernfm commented on Jan 7, 2023

    @southernfm

    I have this issue as well and only with recent versions of tailscale.

    Internal network: 10.0.0.0/24 (does not overlap with any subnets we have on tailnet)

    • Internet service independantly checked - no ping timeouts occurring when a device is directly attached to the internet service
    • Other PCs that are connected to the same network hardware, that are not using tailscale are unaffected and don't have internet drop outs when ping is attempted against the same internet host that I test on my tailscale connected PC
    • See 4 x 'Destination net unreachable' ping replies and then the ping responses resume working again
    • Have tested two separate NICs in my PC, behaviour is present in both NICs
    • The behaviour does not occur at all when the tailscale service is shut off on my PC
    • We use magic DNS but only for an internal subnet which I don't believe is being used when I ping an internet service

    Specs:
    Windows 10 Pro 64-Bit 19045
    NIC: Realtek Gaming 2.5GbE Family Controller and Realtek PCIe GbE Family Controller (two separate NICs, only one used at a time)
    Tailscale version: 1.34.1 - I have seen this in the last couple of versions.
    It seems to be periodical - I have updated to version 1.34.2 and it isn't happening at the moment but I'll report back if it returns.

  7. daavidb commented on Jan 7, 2023

    @daavidb
  8. skarra commented on Feb 24, 2023

    @skarra
    Author

    This keeps happening on my Android phone and quite annoying as it prevents me from keeping Tailscale running all the time in the background. Is there anything I can do to help debug the issue?

  9. chanux commented on Feb 25, 2023

    @chanux
  10. 38 remaining items

  11. codecat commented on Apr 8, 2024

    @codecat

    I would still love to have a solution other than "disable Tailscale's DNS features". Have we been able to troubleshoot where exactly this is going wrong? I'm tempted to dig in and get to the actual root cause of this.

  12. lukevp commented on Apr 8, 2024

    @lukevp

    @codecat I think tailscale is basically MITMing the DNS traffic machine-wide when it's set to use tailscale DNS, right? So perhaps the underlying issue is that tailscale is not upstreaming all requests properly to the origin server. I wonder if we could MITM the MITM by setting up some kind of DNS logging server on a machine and then set tailscale to use MagicDNS and then have it look up a bunch of nonexistent domains (that way it's not cached and must go upstream). do it every second in a loop and see if there's some pattern to it or something. Compare requests to tailscale vs actual requests that hit the logger DNS to look for discrepancies.

    I totally removed tailscale from my network a while back because of this issue, so I don't have it set up to investigate, but really interested in seeing this resolved so I could go back to using it.

  13. maphew commented on Apr 11, 2024

    @maphew

    Pixel 6 Pro here. Whenever I have tailscale app activated and I'm on cell network instead of wifi only tailscale destinations can be browsed to. All others timeout.

    I tried to use the suggestion from #6891 (comment) of disabling overriding global DNS but the setting is already off, and disabled so I can't turn it on anyway.

    Here's the bug report code from the 3-dot menu in the app:
    BUG-ad14ae0dda10038485fcef9581219c54e2c58e65fcced7e74af2583bef5194d4-20240411030037Z-d9219a4915792496

  14. stark1tty commented on Apr 15, 2024

    @stark1tty

    Same problem here on Windows 11. It is running and online in the tray, but offline in the admin console and I cannot ping any of the other network pcs. It is isolated to just Windows.

  15. AlienatedCargo commented on May 21, 2024

    @AlienatedCargo

    Came across this issue today and discovered that the solution above from chocolate42 to disable MagicDNS from within Tailscale web portal DNS settings has resolved my issue. Override local DNS was already disabled and I added google DNS servers for good measure (not sure if adding google DNS made a difference or not).
    Hope this helps others.
    Thanks

  16. agottardo commented on May 21, 2024

    @agottardo
    Contributor

    This is an extremely generic issue that could be caused by a variety of reasons. In most of the cases here DNS seems involved, along with exit node misconfiguration, routes, bad interface switch detection, etc.

    The comments here for the past 1.5 years have all been pointing at different causes, on different platforms, with different root causes. Most likely, some of the problems have probably been fixed in the meantime. All of this makes it hard to understand what this issue is actually tracking, so I'll be closing this.

    If you experience a connectivity issue, please file a new issue with a bug report identifier. Or even better, please contact support. They can look at telemetry from your clients to understand what is actually going on.

  17. ryanovas commented on May 21, 2024

    @ryanovas

    The issue is definitely not resolved, at least on Android. When magic DNS is enabled sometimes websites simply won't load which requires us to have to selectively turn tailscale on and off when we need it. The only common solution I've seen in this thread is to disable magic DNS completely, which doesn't seem like it should be the final accepted solution here.

  18. agottardo commented on May 21, 2024

    @agottardo
    Contributor

    @ryanovas as I already mentioned above, please open a new bug report with a bug report identifier, noting your app and Android versions, and specifying that it only occurs on Android when MagicDNS is enabled. Provide as many steps as possible to reproduce. If you have multiple devices affected as you mentioned, please attach multiple bug report IDs from each device.

    I do want to fix the issue you're experiencing, but the team cannot make sense of what problems users are currently experiencing when a bug report originally mentioning macOS that is almost two years old gets resurfaced without any recent diagnostic information available. There have been dozens of different MagicDNS fixes since this issue was open, affecting different platforms. For instance, I'm quite sure the issue reported by OP originally was fixed by a change that went into Tailscale 1.58.0. The issue you're seeing on Android has most likely a different root cause, and is likely caused by a custom configuration since the majority of our users are not hitting it. Hence the need for a bug report identifier, so that our team can look at your config too.

    We just cannot keep track of which change fixed which issue when very old bug reports keep getting used years later to track issues with different root causes on different platforms. Hope you'll understand.

  19. Explosion-Scratch commented on Oct 20, 2024

    @Explosion-Scratch

    This was happening to me on linux, I fixed it with : sudo ip route add default via 192.168.12.1

  20. Nallak commented on Nov 6, 2024

    @Nallak

    For me problem got solved -> comment of joeynguyen

  21. joemarkey6 commented on Nov 8, 2024

    @joemarkey6

    Im having this issue now, the above fix doesnt work for me.
    If I exit tailscale I have internet, if I enable it I have RDS but no internet

  22. armanrozika commented on Dec 9, 2024

    @armanrozika

    i am having this issue as well, but only with Brave browser, other browsers seem to work just fine

  23. agottardo commented on Dec 9, 2024

    @agottardo
    Contributor

    as I already mentioned above, please open a new bug report with a bug report identifier, noting your app and Android versions

  24. locked as resolved and limited conversation to collaborators on Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    L1 Very fewP3 Can't get startedT6 Major usabilitybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions