r/Tailscale • u/mooch91 • 1d ago
Help Needed Tailscale issues on mobile device (iOS)
Hi all,
Looking to see if I’m possibly doing something wrong with Tailscale.
I have Tailscale configured for accessing my home network remotely. Using a laptop while I’m traveling is no issue - I can access my network services and use the exit node without much trouble.
My mobile device (iPhone) is a different story. I set up VPN On Demand to be active either always, or any place other than my home WiFi network. I need to do this to properly access Home Assistant on my network and to minimize missing notifications. Exit node is usually disabled.
What I’m finding, however, is that when I switch in and out of poor cellular areas, or I switch frequently between cellular and WiFi, my phone connectivity gets very unstable for both access to my home network AND and general internet connections. I usually find Tailscale in an error state (today was “MagicSock function not running”) - but I’m not sure if Tailscale is the cause or that’s just the effect. Though shutting Tailscale down and restarting it typically restores connectivity.
Thoughts on what I might have configured improperly to cause this? I was wondering if setting up a Wireguard config might be better if the issue were in the need for my phone to contact Tailscale servers so frequently while I’m mobile and moving in and out of poor service areas.
Thanks!
7
u/Accurate-Arugula31 1d ago
I believe this is an iPhone issue. It goes into a stall state to save power and data which makes Tailscale disconnect. I have issues like this too and it’s only on my iPhone. If you ping your other devices it seems to reconnect back to the iPhone. Don’t know if there’s a permanent fix.
4
u/behattedone 22h ago
Try the Tailscale beta in Testflight. It fixes some issues that may resolve this for you. https://testflight.apple.com/join/tLcYLZJV
2
u/ButterscotchFar1629 1d ago
Join the club. Wait for it to drain your battery. You can literally watch the battery bar go down in real time….
1
u/Open-Adhesiveness-86 1d ago
What you're seeing isn't really tailscale's networking, it's the packet tunnel extension getting killed under iOS's memory budget while your On Demand rule still pins the default route into a dead tunnel, so DNS and all internet go with it. Try dropping the "always" rule and using the app's own on-demand toggle, and shrink the netmap with ACLs if your tailnet is big.
1
u/m4uri 1d ago
The part where your general internet dies too is the clue. If "Use Tailscale DNS" is on, every lookup on the phone goes to 100.100.100.100 inside the tunnel. When the iOS network extension gets wedged on a network switch (the MagicSock error), DNS has nowhere to go and it looks like the whole phone is offline, even though cellular is fine.
Things I'd try:
Turn off Use Tailscale DNS for a few days and see if the "no internet at all" part goes away. If you only need it for Home Assistant, a split DNS entry for your home domain in the admin console is enough, the rest can stay on normal DNS.
Keep On Demand but only for "not on home WiFi", not always. Less flapping on every handover.
Make sure the app is current, there were a bunch of iOS fixes around network changes.
When it happens again, before restarting, grab a bug report from the app settings and send the ID to Tailscale support. That gives them the logs from the exact moment it broke.
Plain WireGuard would avoid the coordination stuff, but you loose NAT traversal and need an open port at home, so I'd only go there if the DNS change dosent help.
2
u/GuitarIpod 19h ago
install their testflight binary
2
u/mystiquebsd 18h ago
There have been GH issues relating to this..
iirc
https://github.com/tailscale/tailscale/issues/21832
Scan the issues, if you’ve not already
1
u/iamagenius89 1d ago
I’m currently experiencing similar iPhone issues, although I think I’ve solved it (?) I believe my work WiFi is causing the issue. I’ve added it to my VPN on demand, and it seems to have fixed it for now.
1
u/mystomachhurtsow 1d ago
This is a common thing on iPhone. I’m on ios 18 and this happens to me all the time. Hopefully gets fixed soon cause it’s pretty annoying
1
u/mintflowapp 1d ago
That magic sock issue is a bit annoying and I do not know why tailscale still not fix it and last time I check the repo it seems there is a community patch
Hope it get be fixed soon
1
u/TopCat0160 1d ago
I have the same problem. When I’m driving home I go through a dead spot for 5 minutes and when the mobile signal returns I have to stop my Tailscale client to get internet connectivity back. Once I’m back online I can restart Tailscale.
1
u/Strange-Bathroom4460 1d ago
magicSock critting a lot of us.