Skip to content

iOS 26.4.1 + Tailscale 1.96.5 — MagicSock ReceiveIPv4 goroutine stops, data plane dies while control plane stays up #19504

Open

Description

@plpod

What is the issue?

Environment

  • Device: iPhone (iOS 26.4.1)
  • Tailscale iOS: 1.96.5
  • Node: iphone182 (100.125.48.84)
  • Tailnet: <redacted>.ts.net
  • Node ID: nLjurQCaLa11CNTRL
  • Peer used for reproduction: Linux node proxytg (1.96.4) acting as exit node
  • Baseline peer on the same NAT / same public IPv4: macOS Tailscale client — works perfectly

Bug IDs (logs already submitted from the iOS app)

BUG-68a64ff78fd29b1d1aad431944d248f7174b3a2e2683e2d00cd4847973403909-20260423165745Z-dd6ca770071c16d4
BUG-68a64ff78fd29b1d1aad431944d248f7174b3a2e2683e2d00cd4847973403909-20260423201012Z-c602aceac8e835db

What the app shows (Warnings screen)

MagicSock Function Not Running
The MagicSock function ReceiveIPv4 is not running.
You might experience connectivity issues.
Code: magicsock-receive-func-error
Magicsock Function Name: ReceiveIPv4

And, as a downstream consequence:

DNS Unavailable
Tailscale can't reach the configured DNS servers.
Internet connectivity may be affected.
Code: dns-forward-failing

Observed behaviour

  • iPhone registers in tailnet, shows "Connected", appears online in admin.
  • Exit-node selection applies in UI: EXIT NODE: proxytg is shown.
  • No traffic passes: any Safari request times out. If Tailscale VPN is turned off entirely, Safari works normally.
  • From the server side, tailscale ping 100.125.48.84 times out (both disco and --tsmp).
  • Peer stats on the server show a permanent asymmetry. Over a ~10-minute session:
    • iPhone: tx 6340, rx 92 bytes. It sends, almost nothing comes back.
    • macOS peer on the same NAT in the same session: tx 118,554,828, rx 193,740,188.

Steps to reproduce

  1. Install Tailscale on an iOS 26.4.1 device and log in.
  2. Pick a Linux peer (advertising 0.0.0.0/0, approved in admin) as exit node.
  3. Observe no traffic flows; the MagicSock ReceiveIPv4 not running warning appears shortly after.

Things tried that did not help

  • Toggling VPN off/on.
  • Force-quitting the app.
  • Reinstalling Tailscale from the App Store.
  • iOS "Reset Network Settings".
  • Removing the device node from the admin console and re-registering.
  • Rebooting the iPhone.
  • Disabling iCloud Private Relay.
  • Disabling Low Power Mode, enabling Background App Refresh.
  • Switching between WiFi and cellular — same result on both.
  • Standing up a self-hosted DERP (derp.<redacted>, RegionID 900). iPhone reaches its STUN on UDP 3478, even opens a TLS WebSocket to it on TCP 443, but the data-plane relay still dies.

Evidence that the network and the rest of Tailscale are healthy

Server-side tcpdump on eth0 with the iPhone and macOS on the same NAT / same public IP:

  • macOS peer <my-public-ip>:1195 ↔ <server>:41641: thousands of WireGuard packets in both directions, direct connection, throughput in the 100s of MB.
  • iPhone (same NAT): STUN queries to our DERP at :3478 are answered correctly (dozens per minute). After a fresh reinstall, a direct WireGuard handshake even completes: <my-public-ip>:41644 → <server>:41641 (server replies; a handful of packets flow for a few seconds), but the iPhone never actually processes incoming WireGuard traffic — peer rx stays at near-zero.

iPhone netcheck self-report (from admin UI):

Varies: No           (Endpoint-Independent mapping)
UDP: Yes
UPnP: Yes
NAT-PMP: Yes
IPv6: No

So UDP hole-punching succeeds at the network layer, and even our custom DERP is reachable over TCP 443 — but ReceiveIPv4 never actually reads the inbound packets on the client side.

Expected behaviour

ReceiveIPv4 goroutine keeps running for the lifetime of the tunnel, incoming WireGuard IPv4 packets are processed, data plane works.

Actual behaviour

The goroutine is reported as not running; IPv4 inbound WireGuard is effectively dead. Control plane (disco over DERP, netmap updates, peer status) keeps working, which is why the UI shows "Connected" while nothing actually passes through the tunnel.

Additional context

Happy to provide additional tcpdump captures from the server side or rerun any test. The bug looks iOS-26-specific — the same tailnet with the same ACL / DERP works perfectly for macOS and Linux peers on the same NAT

Pinned by sfllaw

Activity

  1. added theissue type on Apr 24, 2026
  2. added
    OS-ios
    and removed on Apr 24, 2026
  3. IMcPwn commented on May 1, 2026

    @IMcPwn

    This happens to me even without using an Exit Node. More than once a day my iPhone's Internet dies and I open Tailscale to see "MagicSock ReceiveIPv4." I even turned off Tailscale's DNS but issue persists. Disabling Tailscale in the meantime as I can't have my phone's Internet dying and not recovering randomly throughout the day.

  4. jonlove234 commented on Jun 16, 2026

    @jonlove234

    Same. I wonder if this related to #18889 as well?

  5. fungiblemoose commented on Jul 21, 2026

    @fungiblemoose

    Additional reproduction from an iPhone using Belay Mobile (TestFlight): sustained direct SSH/tmux control-plane polling plus an interactive SSH terminal appears to reliably expose the same failure. The Tailscale app reports magicsock-receive-func-error / MagicSock ReceiveIPv4 is not running; toggling Tailscale restores connectivity immediately, and the existing tmux session reconnects normally.\n\nWe shipped a client change that explicitly closes Belay SSH connections on backgrounding and backs off reconnects (build 186), but the failure recurred. We then reduced recurring SSH/tmux work further (build 187, now processing), so this does not appear to be a simple leaked/half-open TCP connection. Tailscale was current at the time of reproduction.\n\nCrash-time iOS bug report ID:\n\nBUG-03fc6555bc2b93b8be41df5f2ca23211d7daf3591867cee2706e16df2c14f1ca-20260721125610Z-51a5a1df0c42cf7b\n\nThe user generated a second report after resetting Tailscale; the ID above is the one captured at the actual recurrence. Happy to run a focused test matrix if there are specific connection patterns or diagnostics you want.

  6. tmchow commented on Jul 31, 2026

    @tmchow

    I am repeatedly having this issue. Tailscale support troubleshooting couldn't resolve it and ended up asking me to post my comment here with a fresh bug report ID so here it is

    BUG-201ed848deed910398c8f98403251beceed47029e5addb9a8a9a5c423b772136-20260731064153Z-c2f0c8518bf9e0c2
    
    
  7. unixapple commented on Aug 2, 2026

    @unixapple

    Also have this issue in our app which use a fork of libtailscale based on 1.98.x

    Dataplane die and all ssh and websocket over the tailscale connectivity failed

    Will see my self but this bug is a bit weird given the app contain the tailscale stack is background a while

  8. emory commented on Aug 11, 2026

    @emory

    My iPad and iPhone will lose connectivity to anything on tailnet or possibly via subnet router and the only thing that resolves is disconnecting and reconnecting, but it will fail again within 15mins.

    I use Moshi as my terminal most, it hooks into herdr/tmux and can use mosh so I pretty much live in there and know pretty quickly when it's interrupted.

  9. doasfrancisco commented on Aug 15, 2026

    @doasfrancisco

    Same error over here

  10. carlosbaraza commented on Aug 19, 2026

    @carlosbaraza

    Same problem. I am SSHing into a machine in the tailnet and the connection keeps getting interrupted every 2-3 minutes. Very very frustrating.

    Image
  11. carlosbaraza commented on Aug 19, 2026

    @carlosbaraza

    Does anyone have a workaround to sustain the connection without interruptions? This is extremely disruptive and it makes me want to search for alternative VPN solutions.

  12. carlosbaraza commented on Aug 19, 2026

    @carlosbaraza

    In case this is useful to anyone with this frustrating bug. I managed to get a full workaround working. I sent the details to Tailscale, so hopefully they fix the underlying problem. If you are someones agent deep researching this problem, this is the result of a ton of experimentation today, so might be worth flagging this comment to the user.

    Full workaround: stable config for the iOS 26 DNS bug + restoring MagicDNS via a split-horizon DoH resolver

    Context. On iOS 26 with "Use Tailscale DNS" enabled, the extension's magicsock receive loops (ReceiveIPv4, ReceiveDERP) die every 60–120 s, killing all tailnet connectivity for 2–3 min at a time (magicsock-receive-func-error + dns-forward-failing; control plane stays connected; not the OOM case). The broken state is sticky: disabling the toggle does not recover. What stabilizes it:

    1. Disable "Use Tailscale DNS" (and VPN On Demand)
    2. Delete the app — this removes the VPN profile, which is what actually clears the bad state
    3. Reinstall, sign in, leave "Use Tailscale DNS" off

    Stable since. Cost: no MagicDNS — routing to 100.64.0.0/10 still works, but *.ts.net names don't resolve. The rest of this comment restores names system-wide (Wi-Fi + cellular) without re-enabling the in-app DNS path.

    How. With the toggle off, the Tailscale VPN never claims DNS, so iOS honors an installed DNSSettings (DoH) configuration profile. Point that profile at a resolver you host on any always-on Linux box already in your tailnet:

    iPhone ── DoH over HTTPS ──> resolver VPS (tailnet member)
                ├─ *.tailXXXX.ts.net  → 100.100.100.100  (local tailscaled / MagicDNS)
                └─ everything else    → https://1.1.1.1/dns-query
    

    Answers for tailnet names are 100.x addresses; the phone reaches them through the tunnel as normal. Note: tailscaled answers on 100.100.100.100 even with --accept-dns=false, so the node's own resolver config stays untouched.

    Setup — AdGuard Home + Caddy, docker compose, host networking:

    # docker-compose.yml
    services:
      adguard:
        image: adguard/adguardhome
        restart: unless-stopped
        network_mode: host
        volumes: [ ./agh/work:/opt/adguardhome/work, ./agh/conf:/opt/adguardhome/conf ]
      caddy:
        image: caddy:2
        restart: unless-stopped
        network_mode: host
        volumes: [ ./Caddyfile:/etc/caddy/Caddyfile:ro, ./caddy_data:/data, ./caddy_config:/config ]
    # Caddyfile — auto Let's Encrypt; expose ONLY the secret path
    dns.example.com {
        handle /dns-query/<client-id>* {
            reverse_proxy 127.0.0.1:8053
        }
        handle {
            respond 404
        }
    }
    

    AdGuard Home:

    • Upstreams (Settings → DNS), exactly:
      [/tailXXXX.ts.net/]100.100.100.100
      https://1.1.1.1/dns-query
      
    • Access control: add a client with a long random ClientID and allowlist only it. The DoH URL https://dns.example.com/dns-query/<client-id> — the path is the credential (travels inside TLS).
    • Plain-HTTP DoH for the proxy: on AdGuard ≥ v0.107.79 set http.doh.insecure_enabled: true in AdGuardHome.yaml (the old tls.allow_unencrypted_doh key is silently ignored):
      http:
        address: 0.0.0.0:8053
        doh:
          insecure_enabled: true
    • Firewall: only 80/443 public. Don't expose 53 or the admin UI.
    • DNS record: dns.example.com → <vps-public-ip>, unproxied (grey cloud on Cloudflare).

    iPhone: download the profile AdGuard generates at /apple/doh.mobileconfig?host=dns.example.com&client_id=<client-id> (or any DNSSettings payload with DNSProtocol=HTTPS and that ServerURL), install via Settings → General → VPN & Device Management, keep "Use Tailscale DNS" off.

    Verify (from anywhere):

    dig +https=/dns-query/<client-id> @dns.example.com somehost.tailXXXX.ts.net A   # → 100.x
    dig +https=/dns-query/<client-id> @dns.example.com example.org A               # → public IPs
    # same queries without the ClientID must be rejected (404/REFUSED)
    

    Gotchas

    1. The profile is mandatory, not a fallback: resolver down ⇒ the phone has no DNS until you remove the profile.
    2. Remove the profile before ever re-enabling "Use Tailscale DNS" (the profile is ignored while a VPN claims DNS anyway).
    3. FQDNs only — DoH profiles carry no search domains.
    4. Shared-in nodes from other tailnets won't resolve if the resolver node is tagged (sharing is per-user; they're absent from a tagged node's netmap). Fix: static DNS rewrites in AdGuard for those few names → their stable 100.x IPs.
    5. If 100.64.0.0/10 answers get stripped, exempt your tailnet suffix from the resolver's rebind protection.

    Running this for a while now: names resolve on Wi-Fi and cellular, zero recurrence of the receive-loop deaths, and no tailnet-wide DNS settings had to change.

  13. 81 remaining items

  14. pinned a comment and unpinned a comment on Nov 22, 2026
  15. bluewalk commented on Nov 22, 2026

    @bluewalk

    @nickoneill Tried the latest testflight build (1.105.361) and it seems to be resolved, but... subnets published by a node are not working (not accessible) anymore.

  16. seriouslag commented on Nov 22, 2026

    @seriouslag

    Adding my report here. Not on TestFlight and still having issues on latest iOS build:

    BUG-ad00f771753847dbe143d566cda31bf7f9b8bf3ebf4ef98400f6508d5b005306-20261122084607Z-cf5e84acbf3fce4a

    Tailscale iOS: 1.104.7
    iOS: 27.3

  17. Jerdle commented on Nov 22, 2026

    @Jerdle

    Seeing the same after not experiencing this for a few weeks after the previous issue was marked as Closed.

  18. raphaelsetin commented on Nov 23, 2026

    @raphaelsetin

    For anyone here whose phone runs an app that keeps connecting to a peer that's offline (for example Orca Mobile paired with a computer that is often off): on 1.104.7 I get the ReceiveIPv4 warning and a tunnel-wide stall only while a second paired host is powered off. With it online, no failures in about 3 hours on Wi-Fi and 5G. Details: #22217 (comment)

    The likely mechanism is in #21773 (an unreachable peer using up wireguard-go's packet buffers on iOS).

  19. mdbraber commented on Nov 23, 2026

    @mdbraber

    Follow-up to my earlier comment: the regression is still present in 1.105.368 (macOS 27.2) also after a reboot. 1.105.251 works.

    Symptoms on 1.105.368:

    • Peers show as online, and tailscale ping naggon (disco) returns pong ... via 172.30.11.190:41641 directly over the LAN in 3 ms.
    • tailscale ping --tsmp and --icmp time out for every peer, and so does any TCP connection to peer addresses.
    • tailscale status --json shows LastHandshake: 0001-01-01T00:00:00Z and RxBytes: 0 for all peers. TxBytes keeps growing (5–10 KB per peer), so handshake initiations go out but peers never answer.
    • No MagicSock or DERP warning is shown.

    Control server is Headscale 0.29.x; peers run stable 1.104.x on Linux and FreeBSD (OPNsense). This may be the same issue @bluewalk reported on 1.105.361 (subnet routes unreachable). I don't upload logs to Tailscale, but I'm happy to collect anything specific.

  20. nickoneill commented on Nov 23, 2026

    @nickoneill
    Contributor

    Can you open a new issue @mdbraber? Without the magicsock warning appearing this feels distinct from this issue.

  21. mdbraber commented on Nov 23, 2026

    @mdbraber

    @nickoneill will do. Is there a changelog of what changed after 251?

  22. aktanazat commented on Nov 23, 2026

    @aktanazat

    Another macOS data point: Tailscale macsys 1.104.4 on macOS 27.2 (26B123), Apple Silicon, with a third-party content-filter network extension active (an NEFilterDataProvider; Tailscale's app and network extension are on its allow list).

    Health showed "The MagicSock function ReceiveIPv4 is not running" and every peer was on DERP. The socket table may help narrow this down: packets were reaching magicsock's sockets and nothing was reading them.

    $ netstat -an -p udp | grep '\.41641 '    # three samples a few seconds apart, while pinging a peer
    udp4   18136   0  *.41641  *.*
    udp4   18434   0  *.41641  *.*
    udp4   18626   0  *.41641  *.*
    # udp6 on the same port: 61716 -> 63274 -> 64698
    $ netstat -s -p udp | grep full
    283145 dropped due to full socket buffers
    

    Over the same samples magicsock_recv_data_ipv4 stayed at 12317478 while magicsock_recv_data_derp kept rising, and magicsock_recv_data_ipv6 was 0. The extension's netcheck logged "UDP is blocked" 830 times in 6 hours, while tailscale netcheck run from the CLI at the same time reported UDP: true. So the datagrams were delivered and queued on the socket, not dropped by the filter.

    tailscale debug rebind did not recover it. Quitting and reopening the Tailscale app did, but that relaunch also installed a pending update to 1.104.7, so I can't tell which of the two fixed it: a new extension process came up, both receive queues went to 0, the health warning cleared and the peer went direct.

    I don't have the moment it stopped; the unified log only reached back about 12 hours, all of it already in this state. I'll report back here if it recurs on 1.104.7.

  23. trevyn commented on Nov 24, 2026

    @trevyn

    Can you open a new issue @mdbraber? Without the magicsock warning appearing this feels distinct from this issue.

    I'm currently on iOS 1.105.384 and have been following the latest Testflights for a few days. I have also experienced a little bit of connection weirdness like @mdbraber describes, but have not been able to reproduce the magicsock warning.

  24. IMcPwn commented on Nov 29, 2026

    @IMcPwn

    I'm getting this daily on macOS now 1.105.203

    BUG-a645ea46104ecec2868c93954c3a637ee35652eb82e0246a3685ca3e851c2adc-20261129011554Z-aae691413234b47a

  25. sylr commented on Nov 30, 2026

    @sylr
    Contributor

    I'm getting this daily on macOS now 1.105.203

    BUG-a645ea46104ecec2868c93954c3a637ee35652eb82e0246a3685ca3e851c2adc-20261129011554Z-aae691413234b47a

    Same BUG-a0657c70eb9447eb051d62f63f3288a1a64720ef1be3b5e2e69281dbe19ff5b0-20261130085211Z-b9071b60478fdbdb

  26. 8bitsforge commented on Nov 30, 2026

    @8bitsforge

    @nickoneill Follow-up to my report above (iOS 27 / iPadOS 27.3, ticket TSS-112055), in reply to your request for unstable-build results.

    1.105.384 (TestFlight): resolved for me, on both iPhone and iPad. Every transition that used to trigger the stall now recovers by itself, with no toggling:

    • home Wi-Fi → cellular, when leaving the house
    • no signal → cellular, when driving out of an underground garage (iPhone on wireless CarPlay). This was my most reliable trigger.
    • cellular → home Wi-Fi, when coming back

    On earlier builds, each of these could leave the app showing "Connected" while nothing got through, and it took several toggles to recover. On 1.105.384 it behaves the way it did before this bug started.

    1.107.23: looks like a regression (iPhone only). After updating, the same symptom came back on network transitions: "Connected", no traffic, several toggles needed. That was only a couple of attempts and I didn't capture a bug report, so treat it as a weak signal. I reverted to 1.105.384 and it works again. The iPad was not tested on 1.107.23.

    If I can reproduce it on 1.107.x, I'll post a bug report ID taken during the stall, before toggling.

  27. JamieBerghmans commented on Dec 1, 2026

    @JamieBerghmans

    I've got the opposite happen. On the current public release (1.104.7) the issue happens intermittently for me. However, as soon as I update to the latest (both 107 and 105) TestFlight builds, exit nodes just stop working for me altogether.

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

    OS-iosbug

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions