Repository navigation
Description
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: proxytgis 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.84times out (both disco and--tsmp). - Peer stats on the server show a permanent asymmetry. Over a ~10-minute session:
- iPhone:
tx 6340, rx 92bytes. It sends, almost nothing comes back. - macOS peer on the same NAT in the same session:
tx 118,554,828, rx 193,740,188.
- iPhone:
Steps to reproduce
- Install Tailscale on an iOS 26.4.1 device and log in.
- Pick a Linux peer (advertising
0.0.0.0/0, approved in admin) as exit node. - Observe no traffic flows; the
MagicSock ReceiveIPv4 not runningwarning 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
:3478are 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 — peerrxstays 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
We're nearing the end of the unstable cycle and we'd like to make sure this is resolved for folks before shipping a new stable release. If you're still seeing this issue, can you update to an unstable release (1.105.296 or higher, testflight for ios is listed here: https://tailscale.com/docs/install/unstable) and let us know here if this issue is resolved for you?
Activity
IMcPwn commentedon May 1, 2026
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.
jonlove234 commentedon Jun 16, 2026
Same. I wonder if this related to #18889 as well?
fungiblemoose commentedon Jul 21, 2026
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.tmchow commentedon Jul 31, 2026
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
unixapple commentedon Aug 2, 2026
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
emory commentedon Aug 11, 2026
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.
doasfrancisco commentedon Aug 15, 2026
Same error over here
carlosbaraza commentedon Aug 19, 2026
Same problem. I am SSHing into a machine in the tailnet and the connection keeps getting interrupted every 2-3 minutes. Very very frustrating.
carlosbaraza commentedon Aug 19, 2026
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.
carlosbaraza commentedon Aug 19, 2026
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:Stable since. Cost: no MagicDNS — routing to 100.64.0.0/10 still works, but
*.ts.netnames 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:
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:
AdGuard Home:
https://dns.example.com/dns-query/<client-id>— the path is the credential (travels inside TLS).http.doh.insecure_enabled: trueinAdGuardHome.yaml(the oldtls.allow_unencrypted_dohkey is silently ignored):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 withDNSProtocol=HTTPSand that ServerURL), install via Settings → General → VPN & Device Management, keep "Use Tailscale DNS" off.Verify (from anywhere):
Gotchas
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.
81 remaining items
bluewalk commentedon Nov 22, 2026
@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.
seriouslag commentedon Nov 22, 2026
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
Jerdle commentedon Nov 22, 2026
Seeing the same after not experiencing this for a few weeks after the previous issue was marked as Closed.
raphaelsetin commentedon Nov 23, 2026
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).
mdbraber commentedon Nov 23, 2026
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:
tailscale ping naggon(disco) returnspong ... via 172.30.11.190:41641directly over the LAN in 3 ms.tailscale ping --tsmpand--icmptime out for every peer, and so does any TCP connection to peer addresses.tailscale status --jsonshowsLastHandshake: 0001-01-01T00:00:00ZandRxBytes: 0for all peers. TxBytes keeps growing (5–10 KB per peer), so handshake initiations go out but peers never answer.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.
nickoneill commentedon Nov 23, 2026
Can you open a new issue @mdbraber? Without the magicsock warning appearing this feels distinct from this issue.
mdbraber commentedon Nov 23, 2026
@nickoneill will do. Is there a changelog of what changed after 251?
aktanazat commentedon Nov 23, 2026
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.
Over the same samples
magicsock_recv_data_ipv4stayed at 12317478 whilemagicsock_recv_data_derpkept rising, andmagicsock_recv_data_ipv6was 0. The extension's netcheck logged "UDP is blocked" 830 times in 6 hours, whiletailscale netcheckrun from the CLI at the same time reportedUDP: true. So the datagrams were delivered and queued on the socket, not dropped by the filter.tailscale debug rebinddid 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.
trevyn commentedon Nov 24, 2026
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.
IMcPwn commentedon Nov 29, 2026
I'm getting this daily on macOS now 1.105.203
BUG-a645ea46104ecec2868c93954c3a637ee35652eb82e0246a3685ca3e851c2adc-20261129011554Z-aae691413234b47a
sylr commentedon Nov 30, 2026
Same BUG-a0657c70eb9447eb051d62f63f3288a1a64720ef1be3b5e2e69281dbe19ff5b0-20261130085211Z-b9071b60478fdbdb
8bitsforge commentedon Nov 30, 2026
@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:
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.
JamieBerghmans commentedon Dec 1, 2026
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.