Skip to content

iOS/iPadOS/macOS - Tailscale does not 1280 byte MTUs as specified on some ISPs. #10701

Open

Description

@wingcomm

What is the issue?

We're seeing an issue where apps cannot access resource when Tailscale is connected over Cellular but can reach those services over Wi-Fi. On traditional VPNs we'd usually chalk this up to an MTU issue but I assume that's not the case here.

Two of the reliable failures are Plex and Aprox (Proxmox client on iOS).

Although no apps can reach other tailscale machines over cellular, you can load the web services over Safari just fine.

Using alternative VPN solutions including WireGuard, I can reach all of these resources over cellular indicating that Tailscale has introduced a bug.

Steps to reproduce

Try to connect to Plex over Tailscale when using the tailnet IP configured in "Custom server access URLs" on your Plex server.

Are there any recent changes that introduced the issue?

No

OS

No response

OS version

iOS 17.2.1

Tailscale version

1.58.0

Other software

No response

Bug report

BUG-a6a59623d9db4cb6439a395986dae2789811012fc0b4e2b46dbe3b56512c7c56-20240114044903Z-6b31b72abcc075b8

Activity

  1. coorslight commented on Dec 30, 2023

    @coorslight

    I've had similar issues on iOS devices. Make sure your carrier's DNS isn't overriding tailscale DNS. I determined that Plex's server discovery is pretty flakey and seems to break every other update. Instead of relying on plex's service by using custom server access URLs I use tailscale's magic DNS feature and it works well over celluar on iOS (My plex server isn't publicly accessible). Disable plex's custom access URLs and relay. The best solution I've found for remote plex access is setting up a node on the same LAN as plex and setup tailscale as a subnet router. That way you don't have to run tailscale on the host running plex, and which keeps the plex server's routing table clean.

  2. wingcomm commented on Dec 31, 2023

    @wingcomm
    Author

    @coorslight Appreciate the note but it's not a DNS issue since I'm only using tailnet IPs for the custom URLs.

  3. wingcomm commented on Jan 5, 2024

    @wingcomm
    Author

    Just a follow-up to this case. Plex and other Tailnet resources load fine from Safari when the iPhone is on cellular. This tells me its definitely a tailscale bug since if I use another VPN, the apps can connect to Plex, etc. just fine.

  4. wingcomm commented on Jan 14, 2024

    @wingcomm
    Author

    @DentonGentry Here is the bug report for this iOS issue as requested in #8022

    BUG-a6a59623d9db4cb6439a395986dae2789811012fc0b4e2b46dbe3b56512c7c56-20240114044903Z-6b31b72abcc075b8

  5. wingcomm commented on Jan 19, 2024

    @wingcomm
    Author

    Confirmed that this is still broken on Tailscale 1.58.0 for iOS 17.2.1.

  6. changed the title [-]iOS/iPadOS - Resources are not available on cellular but are available over Wi-Fi[/-] [+]iOS/iPadOS - Apps cannot reach other machines via cellular but are available over Wi-Fi or Safari.[/+] on Jan 19, 2024
  7. wingcomm commented on Feb 21, 2024

    @wingcomm
    Author

    This issue is still present in the latest versions of tailscale 1.60.

  8. wingcomm commented on Mar 11, 2024

    @wingcomm
    Author

    Updated bug reports.

    Here is a bug report on Wi-Fi where I can reach the host on my tailnet:

    BUG-a6a59623d9db4cb6439a395986dae2789811012fc0b4e2b46dbe3b56512c7c56-20240310063926Z-6f525b44fc088610

    Here is a bug report on Cellular Data where I can no longer reach the host on my tailnet even though tailscale is connected:

    BUG-a6a59623d9db4cb6439a395986dae2789811012fc0b4e2b46dbe3b56512c7c56-20240310064039Z-b31af589c60030af

  9. added
    OS-ios
    on Mar 15, 2024
  10. jimmybrancaccio commented on Mar 18, 2024

    @jimmybrancaccio

    To provide and update on this, I along with another Tailscaler were unable to replicate the issue. We'll be continuing to work the issue in the ticket (32301).

  11. wingcomm commented on Mar 18, 2024

    @wingcomm
    Author

    Ran some additional tests and this appears to be an MTU issue. Tailscale does not adjust the MTU size of its tunnel or implement Path MTU Discovery so on connections fail when we attempt to run large file transfers, they timeout.

    ifconfig output for the Tailscale interface on my Mac:

    utun4: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280

    When I run ping -D -s 1252 myhost I see that on my regular internet connection, I can ping hosts over the tailnet at up to 1252 bytes which makes sense when you add the standard IP overhead of 28 bytes. However, when I use my T-Mobile hotspot with my computer, I can't ping hosts over the tailnet with more than 1232 bytes which is 1260 bytes and less than what the tailscale interface is configured to use.

    Can tailscale automatically adjust its interface MTU based on the underlying transport? Does Tailscale just used hardcoded a 1280 byte limit?

    I have updated the issue title to be more precise. This might affect other platforms but I am unable to confirm that.

  12. changed the title [-]iOS/iPadOS - Apps cannot reach other machines via cellular but are available over Wi-Fi or Safari.[/-] [+]iOS/iPadOS/macOS - Tailscale does not handle ISP with MTUs less than 1280 bytes.[/+] on Mar 19, 2024
  13. 3 remaining items

  14. changed the title [-]iOS/iPadOS/macOS - Tailscale does not handle ISP with MTUs less than 1280 bytes.[/-] [+]iOS/iPadOS/macOS - Tailscale does not 1280 byte MTUs as specified on some ISPs.[/+] on Mar 20, 2024
  15. wingcomm commented on Mar 20, 2024

    @wingcomm
    Author

    Ran some additional testing and my T-Mobile hotspot connection over my iPhone is actually capable of handling 1410 bytes packets (1392+28):

    user@Computer ~ % ping -D -s 1393 [www.dslreports.com](http://www.dslreports.com/)
    
    PING [www.dslreports.com](http://www.dslreports.com/) (64.91.255.98): 1393 data bytes
    
    ping: sendto: Message too long
    
    ^C
    
    --- [www.dslreports.com](http://www.dslreports.com/) ping statistics ---
    
    1 packets transmitted, 0 packets received, 100.0% packet loss
    
    user@Computer ~ % ping -D -s 1392 [www.dslreports.com](http://www.dslreports.com/)
    
    PING [www.dslreports.com](http://www.dslreports.com/) (64.91.255.98): 1392 data bytes
    
    1400 bytes from 64.91.255.98: icmp_seq=0 ttl=49 time=123.243 ms
    
    1400 bytes from 64.91.255.98: icmp_seq=1 ttl=49 time=93.524 ms
    
    1400 bytes from 64.91.255.98: icmp_seq=2 ttl=49 time=126.624 ms
    
    1400 bytes from 64.91.255.98: icmp_seq=3 ttl=49 time=106.109 ms
    
    ^C
    
    --- [www.dslreports.com](http://www.dslreports.com/) ping statistics ---
    
    4 packets transmitted, 4 packets received, 0.0% packet loss
    
    round-trip min/avg/max/stddev = 93.524/112.375/126.624/13.377 ms
    

    That leaves 130 bytes for Tailscale to deliver 1280 byte MTU packets as required by IPv6 in RFC 8200. That should be...plenty.

    There seems to be an issue with the Tailscale client that I'm not quite sure how to further troubleshoot...

  16. jimmybrancaccio commented on Mar 20, 2024

    @jimmybrancaccio

    After some further discussion and troubleshooting I was able to replicate this issue. I used the following steps to replicate the issue.

    1. On my iPhone (14 Pro w/ iOS 17.4) I ensured it was only connected to a cellular network (T-Mobile in my case) and was not connected to WiFi.
    2. I enabled the Personal Hot Spot feature on my phone.
    3. On my MacBook Pro (macOS 14.3.1) I connected to the hot spot of the iPhone and then connected to my tailnet via the Mac AppStore version of the Tailscale app.
    4. On my Plex server (which is running on a Mac mini M1 also connected to my tailnet), I ensured that I had set the "Custom server access URLs" found under Settings > Network to the tailscale IP given to my Mac mini. This looked like http://100.70.170.36:32400.
    5. On my MacBook Pro I opened up the Plex app and attempted to playback several pieces of media.
    6. I observed that the app just "spun" and was never able to playback anything.
    7. I attempted to ping the Plex server via Terminal and observed the result of ping: sendto: Message too long. The command I used was ping -D -s 1252 100.70.170.36.

    At this point it's clear there's an issue here which looks to be related to MTU. It should also be noted this doesn't seem to be an issue with just Plex but any application that uses large packets such as FTP, SFTP, SCP, etc...If there's any further testing I can do from my end please don't hesitate to reach out!

  17. wingcomm commented on Mar 20, 2024

    @wingcomm
    Author

    @jimmybrancaccio Thank you for your help confirming this behavior. I look forward to it getting fixed!

  18. wingcomm commented on Apr 8, 2024

    @wingcomm
    Author

    @bradfitz FYI, this affects macOS as well, not just iOS/iPadOS.

  19. added
    OS-macos
    on Apr 8, 2024
  20. wingcomm commented on Apr 22, 2024

    @wingcomm
    Author

    Following up on this issue, I ran a wirelshark for fun. No packets are captured if the ethernet frame is too large so I cannot offer that as an additional diagnostic. The issue clearly lies in the tailscale client itself.

  21. ianlevesque commented on May 16, 2024

    @ianlevesque

    Any update here? I see this on T-Mobile.

  22. raggi commented on Sep 16, 2024

    @raggi
    Member

    Attempting to reproduce, testing with a Google Fi (T-Mobile backed) connection from an iPhone to a Macbook here:

    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
            inet 172.20.10.2 netmask 0xfffffff0 broadcast 172.20.10.15
            nd6 options=201<PERFORMNUD,DAD>
            media: autoselect
            status: active
    
    ~ % ping -D -s 1472 tailscale.com
    PING tailscale.com (76.76.21.21): 1472 data bytes
    1480 bytes from 76.76.21.21: icmp_seq=0 ttl=243 time=37.185 ms
    1480 bytes from 76.76.21.21: icmp_seq=1 ttl=243 time=313.013 ms
    1480 bytes from 76.76.21.21: icmp_seq=2 ttl=243 time=36.794 ms
    

    The tailscale0 MTU is 1280, so we ping hello with 1252:

    ~ % ping -D -s 1252 hello.ts.net
    PING hello.ts.net (100.101.102.103): 1252 data bytes
    1260 bytes from 100.101.102.103: icmp_seq=0 ttl=64 time=678.431 ms
    1260 bytes from 100.101.102.103: icmp_seq=1 ttl=64 time=236.011 ms
    1260 bytes from 100.101.102.103: icmp_seq=2 ttl=64 time=226.155 ms
    

    So the connection here is large enough for the common wireguard frames (~1360 bytes), and the inner MTU is 1280, sufficient for IPv6 and should be working in th example given in #10701 (comment) point 7.

  23. raggi commented on Sep 16, 2024

    @raggi
    Member

    7. I attempted to ping the Plex server via Terminal and observed the result of ping: sendto: Message too long. The command I used was ping -D -s 1252 100.70.170.36.

    @jimmybrancaccio what is the MTU on your tailscale0 interface? It should be 1280, but this looks like it is lower for some reason

  24. jimmybrancaccio commented on Sep 16, 2024

    @jimmybrancaccio

    Here's the interface:

    utun4: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
    	options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
    	inet6 fe80::8694:37ff:fecf:4375%utun4 prefixlen 64 scopeid 0x1d
    	inet 100.98.37.51 --> 100.98.37.51 netmask 0xffffffff
    	inet6 fd7a:115c:a1e0::5b01:2533 prefixlen 48
    	nd6 options=201<PERFORMNUD,DAD>
    

    and ping results:

    ping -c5 -D -s 1252 100.70.170.36
    PING 100.70.170.36 (100.70.170.36): 1252 data bytes
    ping: sendto: Message too long
    Request timeout for icmp_seq 0
    ping: sendto: Message too long
    Request timeout for icmp_seq 1
    ping: sendto: Message too long
    Request timeout for icmp_seq 2
    ping: sendto: Message too long
    Request timeout for icmp_seq 3
    
    --- 100.70.170.36 ping statistics ---
    5 packets transmitted, 0 packets received, 100.0% packet loss
    

    I followed the same reproduction steps as outlined in my comment here.

  25. wingcomm commented on Sep 16, 2024

    @wingcomm
    Author

    Happy to help test as well @raggi .

  26. wingcomm commented on Oct 11, 2024

    @wingcomm
    Author

    Attempting to reproduce, testing with a Google Fi (T-Mobile backed) connection from an iPhone to a Macbook here:

    en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM>
            inet 172.20.10.2 netmask 0xfffffff0 broadcast 172.20.10.15
            nd6 options=201<PERFORMNUD,DAD>
            media: autoselect
            status: active
    
    ~ % ping -D -s 1472 tailscale.com
    PING tailscale.com (76.76.21.21): 1472 data bytes
    1480 bytes from 76.76.21.21: icmp_seq=0 ttl=243 time=37.185 ms
    1480 bytes from 76.76.21.21: icmp_seq=1 ttl=243 time=313.013 ms
    1480 bytes from 76.76.21.21: icmp_seq=2 ttl=243 time=36.794 ms
    

    The tailscale0 MTU is 1280, so we ping hello with 1252:

    ~ % ping -D -s 1252 hello.ts.net
    PING hello.ts.net (100.101.102.103): 1252 data bytes
    1260 bytes from 100.101.102.103: icmp_seq=0 ttl=64 time=678.431 ms
    1260 bytes from 100.101.102.103: icmp_seq=1 ttl=64 time=236.011 ms
    1260 bytes from 100.101.102.103: icmp_seq=2 ttl=64 time=226.155 ms
    

    So the connection here is large enough for the common wireguard frames (~1360 bytes), and the inner MTU is 1280, sufficient for IPv6 and should be working in th example given in #10701 (comment) point 7.

    @raggi Thank you for giving this a test. Since traffic is tunneled back to Google for Fi and not T-Mobile, using Fi, may not be suitable for replicating this behavior.

  27. gorstj commented on Apr 20, 2025

    @gorstj

    I am having similar MTU issues with a specific public wifi network (BT Wifi) with a iPhone or iPad

    Connecting to my tailnet works fine on most wifi and cellular connections

    On this specific wifi (BT Wifi)

    • I can ping any of my tailnet (using ping and tailnet ping) proving connectivity using IP address or magicdns hostname
    • however I am limited to sending a 1236 byte ping to my device when on BT Wifi (1252 when on any other connection) - this is testing from a linux server on my tailnet to my iPad/iPhone
    • connections to most websites fail (or at least load slowly or incomplete) - this is either on my tailnet 'selfhosted' web sites or when using an exit node
    • I can SSH from iPhone (Terminus) to a linux server - but I can't type anything into the connection - odd!

    Testing the MTU of this specific BT Wifi connection seems to suggest the MTU is 1331 (ping 1.1.1.1 -f -l 1303 is the largest packet I can send)

  28. IjonFryderyk commented on Nov 15, 2026

    @IjonFryderyk

    Same symptom here, with numbers in case they help. iPhone (iOS 27, Tailscale on cellular, a Polish mobile network) → Ubuntu server (Tailscale 1.104.7), direct path over IPv6. Seen from the server, inner packets ≤1178 B reach the phone 100% of the time, while ≥1208 B are lost 100% (ping -M do -s N to the phone's 100.x address). There's no ICMPv6 Packet Too Big, so they're silently black-holed. On Wi‑Fi and abroad there's no problem.

    The visible symptom was SSH failing at key exchange (Connection reset … [preauth] in sshd logs), because the KEX reply (mlkem768x25519) is >1 KB. It only worked occasionally, when the path happened to go via DERP.

    Workaround on the server side: TS_DEBUG_MTU=1200 in /etc/default/tailscaled plus a restart. The TCP MSS drops accordingly, and SSH now connects instantly every time. Peer MTU discovery (#311) would fix this properly.

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-iosOS-macosP2 AggravatingT5 Usabilitybug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions