Skip to content

iPhone - internet break after leave wi-fi range #8022

Closed

Description

@kwladyka

What is the issue?

Tailscale on iPhone make internet connection for apps not work.

Apps like chrome, inpost, binance, youtube etc. can't use internet, but messages and ping 8.8.8.8 work. Strange.

This is happening after I drive a car with CarPlay.

fix: switch tailscale to off and on again.

The same issue is with exit node and without.

PS If I will figure out something more I will edit.

Steps to reproduce

Not sure. Drive a car with CarPlay for a long time? Fast connect and disconnect doesn't make this issue.

Are there any recent changes that introduced the issue?

no

OS

iOS

OS version

16.4.1, iPhone 13 Pro

Tailscale version

1.40.0

Other software

No response

Bug report

BUG-75eea8bf205435440f38dab8c1fbe33984d6d8cd4562b65bf0786579d36d02c8-20230510095249Z-4b5761ea04a0c25e

Activity

  1. FinalPoint commented on May 5, 2023

    @FinalPoint

    I have been observing the same problem on my iPhone 11 Pro / iOS 16.4.1 (a) with Tailscale 1.40.0

    ⁃	When my Tailscale VPN is UP and I am using an an exit node, I lose Internet connectivity when I get out of the range of my Wi-Fi network and switch to LTE. The "VPN" status icon on the top left stays up, tho.
    ⁃	Starting the Tailscale app, stopping the VPN connection and restarting it fixes the problem.
    ⁃	Switching "Use exit node" to none, and back to the same exit node that was used fixes the problem
    ⁃	Switching "Use exit node" to another exit node _doesn't_ fix the problem
    ⁃	Simply waiting (I tried to wait for about 15 minutes) _doesn't_ fix the problem
    ⁃	The reverse, going from LTE to Wi-Fi doesn't cause the same problem
    ⁃	I only observe that problem when an exit node is enabled
    

    Same problem on TestFlight version 1.41.12

    Rolling back to TestFlight version 1.39.146 fixes the issue on my device

  2. kwladyka commented on May 9, 2023

    @kwladyka
    Author

    I have a hypothesis but I have to prove it:

    I use CarPlay in iPhone. What is does is connecting to the car using wi-fi. It made me already issues with different apps, because this wi-fi doesn't prove Internet, but apps use this wi-fi by not "understanding" this is is wi-fi without internet for CarPlay purpose.

    So the hypothesis is when I drive a car and my iPhone connect to CarPlay (so to wi-fi too), then Tailscale after some time lost authentication and doesn't refresh it after stop driving.

    The solution here is Tailscale should never use CarPlay wi-fi. It should use standard Cellular Data during this time. I guess there is some solution in iPhone to use wi-fi which is real wi-fi and not wi-fi which is used for CarPlay.

  3. kwladyka commented on May 10, 2023

    @kwladyka
    Author

    I added a bug id and edited first message to describe what I have discovered.

  4. kwladyka commented on May 12, 2023

    @kwladyka
    Author

    Ok this is even more crazy.

    Now I am trying exit node and it work, until it doesn't. The same for laptop and iphone. I can load in my laptop half of the intertnet in chrome but I can' other half. Depends on website. I am sitting in the hotel (this time no car), route traffic from my home network and it just doesn't work as expected.

    It correctly redirect traffic, because IP is from my home network. But just I can't use half of the internet and I can other half. The same website constantly work or doesn't.

    Here is the most confusing thing. In notebook and iPhone other websites work and other don't. Constantly the same. I don't know WTF but tailscale is totally not usable. Even if I turn off and on tailscale the issue is the same, the same websites. Nothing change.

  5. Zk2u commented on May 17, 2023

    @Zk2u

    I get this same issue as of recent. My iPhone loses connectivity often as I'm switching between wifi/cellular/none while walking and it's incredibly annoying. Reverted back to 1.39.146 and will have to see if that fixes it. Using iOS 16.5 (20F65)

    Edit: can confirm this issue isn't existent on 1.39.146

    Edit 2: exit node functionality is flawless on 1.39.146. Switching between 3 wifi networks, cellular, no signal without issue. The latest version is horribly fragile and for me breaks every time a network change happens.

  6. FinalPoint commented on May 21, 2023

    @FinalPoint

    Just tested TestFlight version 1.41.69: I still experience the exact same issue.

  7. FinalPoint commented on May 30, 2023

    @FinalPoint

    Same issue with 1.42.0.

  8. sethwm2 commented on May 30, 2023

    @sethwm2

    I signed in to comment on this because I had the same thing happen to me with the 1.40.0 update on iOS and it is driving me insane. The issue still persists with the newest update 1.42.0. I have been in a 14 email conversation with a support engineer from Tailscale. I submitted bug reports from the Tailscale client and sysdiagnose from iOS and was told the results from those have been inconclusive.

    Edit: I don't have CarPlay. This is not a CarPlay issue.

  9. sethwm2 commented on May 30, 2023

    @sethwm2

    I have been observing the same problem on my iPhone 11 Pro / iOS 16.4.1 (a) with Tailscale 1.40.0

    ⁃	When my Tailscale VPN is UP and I am using an an exit node, I lose Internet connectivity when I get out of the range of my Wi-Fi network and switch to LTE. The "VPN" status icon on the top left stays up, tho.
    ⁃	Starting the Tailscale app, stopping the VPN connection and restarting it fixes the problem.
    ⁃	Switching "Use exit node" to none, and back to the same exit node that was used fixes the problem
    ⁃	Switching "Use exit node" to another exit node _doesn't_ fix the problem
    ⁃	Simply waiting (I tried to wait for about 15 minutes) _doesn't_ fix the problem
    ⁃	The reverse, going from LTE to Wi-Fi doesn't cause the same problem
    ⁃	I only observe that problem when an exit node is enabled
    

    Same problem on TestFlight version 1.41.12

    Rolling back to TestFlight version 1.39.146 fixes the issue on my device

    This is exactly what is happening to me it is enraging especially because the whole point of having devices on tailscale is for them to always be connected.

  10. FinalPoint commented on May 30, 2023

    @FinalPoint

    I have been observing the same problem on my iPhone 11 Pro / iOS 16.4.1 (a) with Tailscale 1.40.0

    ⁃	When my Tailscale VPN is UP and I am using an an exit node, I lose Internet connectivity when I get out of the range of my Wi-Fi network and switch to LTE. The "VPN" status icon on the top left stays up, tho.
    ⁃	Starting the Tailscale app, stopping the VPN connection and restarting it fixes the problem.
    ⁃	Switching "Use exit node" to none, and back to the same exit node that was used fixes the problem
    ⁃	Switching "Use exit node" to another exit node _doesn't_ fix the problem
    ⁃	Simply waiting (I tried to wait for about 15 minutes) _doesn't_ fix the problem
    ⁃	The reverse, going from LTE to Wi-Fi doesn't cause the same problem
    ⁃	I only observe that problem when an exit node is enabled
    

    Same problem on TestFlight version 1.41.12
    Rolling back to TestFlight version 1.39.146 fixes the issue on my device

    This is exactly what is happening to me it is enraging especially because the whole point of having devices on tailscale is for them to always be connected.

    Could you specify the model of the device you are using and it's OS version?

    Also, if you are still in contact with a support engineer, could you point him to this page? I am not sure it is on their radar. And knowing that multiple users are experiencing the same issue generally help to increase the priority of an issue...

  11. sethwm2 commented on May 30, 2023

    @sethwm2

    I have been observing the same problem on my iPhone 11 Pro / iOS 16.4.1 (a) with Tailscale 1.40.0

    ⁃	When my Tailscale VPN is UP and I am using an an exit node, I lose Internet connectivity when I get out of the range of my Wi-Fi network and switch to LTE. The "VPN" status icon on the top left stays up, tho.
    ⁃	Starting the Tailscale app, stopping the VPN connection and restarting it fixes the problem.
    ⁃	Switching "Use exit node" to none, and back to the same exit node that was used fixes the problem
    ⁃	Switching "Use exit node" to another exit node _doesn't_ fix the problem
    ⁃	Simply waiting (I tried to wait for about 15 minutes) _doesn't_ fix the problem
    ⁃	The reverse, going from LTE to Wi-Fi doesn't cause the same problem
    ⁃	I only observe that problem when an exit node is enabled
    

    Same problem on TestFlight version 1.41.12
    Rolling back to TestFlight version 1.39.146 fixes the issue on my device

    This is exactly what is happening to me it is enraging especially because the whole point of having devices on tailscale is for them to always be connected.

    Could you specify the model of the device you are using and it's OS version?

    Also, if you are still in contact with a support engineer, could you point him to this page? I am not sure it is on their radar. And knowing that multiple users are experiencing the same issue generally help to increase the priority of an issue...

    I am running an iPhone 11 Pro Max NWGK22LL/A on iOS 16.5 (20F66) Tailscale client 1.42.0

    Every time I disconnect and reconnect to wifi or cell network, I have to turn Tailscale off in the client and back on again to have any internet to my phone. This is an issue that cropped up first in 1.40.0 of the client. 1.42.0 has not fixed this issue. I just sent the link of this issue to the support engineer. I feel like another bug report should be opened for this and have this consolidated because the network issue when going out of range of wifi or reconnecting to wifi is not just a CarPlay specific issue.

  12. Zk2u commented on May 30, 2023

    @Zk2u

    Yeah, I don't use CarPlay and I still get the same issue.

    iPhone 13 Pro Max MLL03LL/A, iOS 16.5 (20F66), TS 1.42.0

  13. 62 remaining items

  14. agottardo commented on May 31, 2024

    @agottardo
    Contributor

    @r3n3x can I get a bug report ID from your device?

  15. r3n3x commented on May 31, 2024

    @r3n3x

    @r3n3x can I get a bug report ID from your device?

    BUG-682b4aec417fec210550c7b72646446cf88eeffa828e5673a94cd6766fcd0eae-20240531022730Z-0c78c2466a426c88

  16. agottardo commented on May 31, 2024

    @agottardo
    Contributor

    Thank you!

  17. agottardo commented on May 31, 2024

    @agottardo
    Contributor

    @r3n3x appreciate you sending the bug report ID, there appears to be something off with DNS over HTTPS during the timeframe you indicated. We're looking into it.

  18. r3n3x commented on May 31, 2024

    @r3n3x

    Thanks.
    Yes, I had configured to use my NextDNS (DoH) profile with Tailscale&Mullvad.

    Perhaps @FinalPoint uses NextDNS or other custom DNS, too?

  19. FinalPoint commented on May 31, 2024

    @FinalPoint

    Interesting.
    Yes, I have a DoH configuration profile installed on my iPhone. It's pointing to a (publicly accessible) server I manage myself.

  20. agottardo commented on May 31, 2024

    @agottardo
    Contributor

    Interesting.

    Yes, I have a DoH configuration profile installed on my iPhone. It's pointing to a (publicly accessible) server I manage myself.

    @FinalPoint Do you have DoH configured in the Tailscale admin console, and is Override Local DNS enabled?

  21. FinalPoint commented on May 31, 2024

    @FinalPoint

    @agottardo In the Tailscale admin console, I see that I have "Cloudflare Public DNS" configured as my Nameservers, with "Override Local DNS" enabled. I am not using the "NextDNS (DoH)" servers.

  22. FinalPoint commented on Jun 2, 2024

    @FinalPoint

    Experienced the problem a few minutes ago. Like before, disabling the use of my exit node for a few seconds and reenabling it got me back network connectivity.

    @agottardo : BUG-b64e902406c500582fcd230df9d19fb2e34b9d872664e2c3622c3c8306fecfd7-20240602104734Z-690b0b8ca9f418f4

    Thanks!

  23. r3n3x commented on Jun 4, 2024

    @r3n3x

    https://www.reddit.com/r/ProtonVPN/s/EjOaaDxZvS

    ProtonVPN app users experience a similar behavior. Is it perhaps a iOS update related matter for Wireguard VPNs?

  24. agottardo commented on Jun 4, 2024

    @agottardo
    Contributor

    @r3n3x no, this is not caused by an iOS update and we encourage you to always use the latest iOS version available. Tailscale engineers run on the iOS beta to identify issues caused by upcoming updates. Generally speaking, there are tens of dozens of different reasons why network transitions will break a VPN on iOS. Any VPN client doing more than a bare minimum implementation using the public Apple APIs is bound to break when moving between networks. We got several of these things wrong in the past, and oh well, other VPNs are bound to experience the same.

    We are investigating the issue reported by you and @FinalPoint. Your bug report IDs indicate it is specifically caused by using DNS over HTTPS, and the forwarder attempting to re-use a connection that was broken by a network transition. For now as a temporary workaround, you'll likely see a benefit from disabling "Use Tailscale DNS Settings" in the app (yes I know, you'll lose the ability to access resources using their name...). We likely won't land a fix in time for this in v1.68. Stay on TestFlight so you can get a fix when we ship it.

  25. FinalPoint commented on Jun 4, 2024

    @FinalPoint

    @agottardo, is your recommendation to disable "Use Tailscale DNS Settings" also for me? As I understand it, I do use "Tailscale DNS Settings", but I am using a "traditional" plain text / udp DNS, and not DoH.

    Also wondering: is there another bug to track this issue? If not, should this one still be marked as "closed"?

  26. agottardo commented on Jun 5, 2024

    @agottardo
    Contributor

    @FinalPoint I opened #12352 to track this for you and @r3n3x. You can track progress there.

  27. agottardo commented on Jun 5, 2024

    @agottardo
    Contributor

    I'll be locking this as the original issue has been addressed, and I don't want to keep re-use this issue # to track a different problem (it is confusing for us to make sense of what has been fixed and what hasn't).

  28. locked as resolved and limited conversation to collaborators on Jun 5, 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 fewOS-iosbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions