What Causes This Issue
Users across Apple Support Community threads report that WireGuard tunnels fail to establish on iPhone, iPad, and Mac. The tunnel shows as active but no traffic passes, or the handshake never completes. This affects both commercial VPN apps and self-hosted configurations using the official WireGuard app from the App Store.
The root causes vary: MTU mismatches on cellular networks, incorrect endpoint formatting, stale peer keys, missing keepalive settings, and DNS resolution failures. Recent discussion around Post-Quantum Cryptography extensions in WireGuard v2 drafts has also surfaced compatibility concerns with older server implementations, though most current failures stem from basic misconfiguration rather than protocol changes.
Apple’s NetworkExtension framework imposes strict sandboxing. If the tunnel interface cannot bind to the physical interface within the allotted time, iOS tears it down silently. macOS is more permissive but still enforces routing table constraints that break split-tunnel setups when allowed IPs overlap with local subnets.
Step-by-Step Fixes
- Verify handshake completion: Open the WireGuard app, tap the tunnel, and check “Latest handshake.” If it shows “Never” or a timestamp older than three minutes, the peer is unreachable. Confirm the server’s public key matches exactly what’s in your config — a single character mismatch prevents handshake.
- Set persistent keepalive to 25 seconds: Add
PersistentKeepalive = 25under the [Peer] section. This forces a handshake packet every 25 seconds, preventing NAT mappings from expiring on carrier-grade NAT and hotel Wi-Fi. Without it, the tunnel appears up but passes zero traffic after idle periods. - Lower MTU to 1280: Cellular carriers often fragment packets above 1280 bytes. In the WireGuard app, edit the tunnel, tap “MTU,” and enter 1280. On macOS, run
sudo ifconfig utunX mtu 1280(replace X with your interface number). Test withping -D -s 1252 1.1.1.1— if it fails, drop by 10 until it succeeds. - Use numeric endpoint, not hostname: Replace
endpoint = vpn.example.com:51820with the server’s public IP. DNS resolution inside the NetworkExtension context is unreliable on iOS 17 and later. If the IP changes, update the config manually or use a Dynamic DNS script that rewrites the .conf file. - Check allowed IPs for overlap: Your allowed IPs must not include the local subnet (e.g., 192.168.1.0/24). If you need split tunneling, list only remote subnets:
AllowedIPs = 10.0.0.0/8, 172.16.0.0/12. For full tunnel, use0.0.0.0/0, ::/0but ensure the endpoint IP is excluded via a more specific route — the app handles this automatically if “Exclude endpoint” is enabled. - Regenerate key pair on both ends: Stale or compromised keys cause silent handshake failures. In the WireGuard app, swipe the tunnel left, tap “Regenerate Keys,” then update the server’s
wg0.confwith the new public key. Restart the server interface:wg-quick down wg0 && wg-quick up wg0. - Disable Private Relay and iCloud Private Relay: These Apple services intercept traffic before it reaches the WireGuard interface. On iOS: Settings → [Your Name] → iCloud → Private Relay → Off. On macOS: System Settings → Network → iCloud Private Relay → Turn Off. Test again after disabling.
- Reset network settings: If all tunnels fail, go to Settings → General → Transfer or Reset iPhone → Reset → Reset Network Settings. This clears corrupted NEProvider caches. You’ll re-enter Wi-Fi passwords, but it resolves deep-seated routing table corruption that no config change fixes.
Additional Solutions
Enable “On-Demand” only for trusted networks. In the tunnel settings, set “Activate On Demand” → “Wi-Fi” and add your home SSID. This prevents the tunnel from fighting captive portals at airports and cafes. Users in the Apple Support Community report that On-Demand conflicts with enterprise MDM profiles — if your device is managed, consult IT before enabling.
For self-hosted servers, ensure net.ipv4.ip_forward=1 and net.ipv6.conf.all.forwarding=1 are set in /etc/sysctl.d/99-wireguard.conf. Apply with sysctl --system. Verify the firewall allows UDP 51820 inbound and establishes related/established outbound. A common oversight: UFW default deny blocks the return path unless you add ufw allow in on wg0 and ufw allow out on wg0.
If you run WireGuard inside a container (Docker, Podman), the host must have the wireguard kernel module loaded and sysctl -w net.ipv4.conf.all.src_valid_mark=1. Without src_valid_mark, the kernel drops return packets due to reverse-path filtering. This manifests as handshake success but zero data throughput — exactly what many community reporters describe.
Test with a known-good config. Generate a test tunnel at https://www.wireguard.com/config/ or use a commercial provider’s .conf file. If the test works, your server config is at fault. Diff your config against the working one: check PostUp/PostDown scripts for iptables rules that don’t match your interface names.
On macOS 14 Sonoma and later, the WireGuard app requires Full Disk Access for the wg-quick binary if you use the command-line tool. Grant it in System Settings → Privacy & Security → Full Disk Access. The App Store sandboxed app does not need this, but CLI users hit this silently — the tunnel shows “activating” indefinitely.
When to Contact Apple Support
Contact Apple Support if:
- Multiple known-good WireGuard configs fail on the same device but work on other devices on the same network
- The NetworkExtension entitlement fails to load — check Console.app for “neagent” errors like “Failed to start tunnel: NEVPNErrorDomain Code=1”
- iOS updates (especially major versions) break all VPN tunnels until a subsequent point release
- You see “WireGuard: unable to create interface” in macOS system.log — this indicates a kernel extension or sandbox denial requiring Apple engineering
Before calling, capture a sysdiagnose: press both volume buttons and side button simultaneously on iPhone, or run sysdiagnose in Terminal on Mac. Attach the resulting archive to the support case. It contains NEProvider logs that Apple engineers need to diagnose framework-level failures.
FAQ
Why does WireGuard show connected but no internet?
Handshake succeeded but traffic isn’t routed through the tunnel. Check allowed IPs includes 0.0.0.0/0, verify endpoint is reachable (ping the server IP), and confirm PersistentKeepalive is set. On iOS, disable Private Relay.
Does WireGuard v2 break existing tunnels?
No. WireGuard v2 refers to draft specifications adding Post-Quantum Cryptography handshake options. Current Apple App Store apps implement WireGuard v1. Servers advertising v2 capabilities still negotiate v1 with existing clients. No action needed unless you explicitly upgrade both ends.
Can I run two WireGuard tunnels simultaneously?
iOS allows only one active NEProvider tunnel at a time. macOS supports multiple if each uses a distinct utun interface and non-overlapping allowed IPs. Use separate apps (e.g., WireGuard + Tailscale) or the command line with unique interface names: wg-quick up wg0-home, wg-quick up wg0-work.
Why does cellular work but Wi-Fi fail (or vice versa)?
MTU mismatch. Cellular often requires 1280; home Wi-Fi usually handles 1420. Set MTU to 1280 globally — it works everywhere with minimal overhead. Some routers block UDP 51820; test with nmap -sU -p 51820 from the client network.
How do I debug handshake packets?
On macOS: sudo tcpdump -ni utun0 udp port 51820. On iOS: enable “Log All Network Traffic” in the WireGuard app settings, reproduce the failure, then share the log via the share sheet. Look for “handshake initiation sent” without “handshake response received” — that’s a firewall or endpoint issue.






































