[GH-ISSUE #3207] [iOS 26.6.1] Config with ~3,100 AllowedIPs: path reported "unsatisfied", backend paused for 20+ min while UI shows Connected #1488

Open
opened 2026-10-14 03:43:42 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Suvmsh on GitHub (Sep 23, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3207

Describe the bug
With an AmneziaWG config whose AllowedIPs is a long list of prefixes (~3,100 IPv4 prefixes: the complement of a set of excluded networks), the iOS network extension reports the network path as unsatisfied right after applying the routes, pauses the backend ("Connectivity offline, pausing backend.") and stays in temporaryShutdown while Wi-Fi and cellular are both up. The UI keeps showing Connected, but no traffic passes. It only recovers when the tunnel is turned off and on again.

A full-tunnel config (AllowedIPs = 0.0.0.0/0, ::/0) on the same phone does not do this: the path stays satisfied and the tunnel is stable for days.

To Reproduce

  1. Import an AmneziaWG config with ~3,100 prefixes in AllowedIPs (log line: Network settings (start): ... ipv4 inc/exc=3118/1 ipv6 inc/exc=0/0).
  2. Connect. The handshake completes and the UI shows Connected.
  3. Within about a minute the extension logs Network change detected with unsatisfied route and interface order [en0, en0, pdp_ip0, utun7], then Connectivity offline, pausing backend.
  4. The path stays unsatisfied (22 minutes in the log below) until the tunnel is stopped. The UI shows Connected the whole time.

Expected behavior
The backend should not stay paused while the device has connectivity. At least, a path that is unsatisfied only because of the tunnel's own routes should not put the adapter into temporaryShutdown indefinitely.

Log files
Excerpt from the extension log, peer keys and addresses removed (times are local, UTC+3):

00:14:26 Network change detected with satisfied route and interface order [en0, en0, utun7, pdp_ip0]   <- full-tunnel config, normal
00:14:26 UDP bind has been updated v4 - started
00:14:38 Stopping tunnel: reason: The user stopped the NE
00:14:41 Network settings (start): remote=<server> mtu=1280 dns=<dns> ipv4 inc/exc=3118/1 ipv6 inc/exc=0/0   <- split config
00:14:42 WireGuard backend started with handle 0
00:14:42 Network change detected with unsatisfied route and interface order [en0, en0, pdp_ip0, utun7]
00:15:08 peer(...) - Receiving keepalive packet
00:15:31 peer(...) - Receiving keepalive packet
00:15:46 Network change detected with unsatisfied route and interface order [en0, en0, pdp_ip0, utun7]
00:15:46 Connectivity offline, pausing backend.
00:15:47 getRuntimeConfiguration: adapter not started (state=temporaryShutdown)
... ~30 more path updates over 22 minutes, every one `unsatisfied`, [en0, en0, pdp_ip0, utun7] ...
00:38:14 Network change detected with satisfied route and interface order [en0, en0, pdp_ip0]
00:38:14 Connectivity online, resuming backend.
00:38:14 Stopping tunnel: reason: The user stopped the NE
00:38:51 Network settings (start): ... ipv4 inc/exc=2/1 ipv6 inc/exc=1/0   <- full-tunnel config again
00:38:52 Network change detected with satisfied route and interface order [en0, en0, utun7, pdp_ip0]
00:38:52 peer(...) - Received handshake response

Note the interface order: with the full-tunnel config utun7 is second and the path is satisfied; with the split config utun7 is last and the path is unsatisfied, even though keepalives from the server were still arriving right before the pause. The full log is available privately if needed.

Smartphone:

  • Device: iPhone 17
  • OS: iOS 26.6.1
  • Version: AmneziaVPN 5.0.3.0 (App Store)

Server:

  • OS: Debian 13, self-hosted AWG 3.1 (amneziawg-go in the Amnezia Docker container)

Additional context

  • Android devices with the same split config are stable.
  • In this log the two configs point to two different servers, but they run the identical amneziawg-go binary. Earlier, on a single server, a phone that was stable for days on full tunnel started dropping within hours after switching to the split config.
  • This is a different mechanism from amnezia-vpn/amneziawg-apple#47 (reused source port on a satisfied path). Here the path itself is reported unsatisfied and the adapter pauses.
Originally created by @Suvmsh on GitHub (Sep 23, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/3207 **Describe the bug** With an AmneziaWG config whose AllowedIPs is a long list of prefixes (~3,100 IPv4 prefixes: the complement of a set of excluded networks), the iOS network extension reports the network path as `unsatisfied` right after applying the routes, pauses the backend ("Connectivity offline, pausing backend.") and stays in `temporaryShutdown` while Wi-Fi and cellular are both up. The UI keeps showing Connected, but no traffic passes. It only recovers when the tunnel is turned off and on again. A full-tunnel config (AllowedIPs = 0.0.0.0/0, ::/0) on the same phone does not do this: the path stays `satisfied` and the tunnel is stable for days. **To Reproduce** 1. Import an AmneziaWG config with ~3,100 prefixes in AllowedIPs (log line: `Network settings (start): ... ipv4 inc/exc=3118/1 ipv6 inc/exc=0/0`). 2. Connect. The handshake completes and the UI shows Connected. 3. Within about a minute the extension logs `Network change detected with unsatisfied route and interface order [en0, en0, pdp_ip0, utun7]`, then `Connectivity offline, pausing backend.` 4. The path stays `unsatisfied` (22 minutes in the log below) until the tunnel is stopped. The UI shows Connected the whole time. **Expected behavior** The backend should not stay paused while the device has connectivity. At least, a path that is `unsatisfied` only because of the tunnel's own routes should not put the adapter into `temporaryShutdown` indefinitely. **Log files** Excerpt from the extension log, peer keys and addresses removed (times are local, UTC+3): ``` 00:14:26 Network change detected with satisfied route and interface order [en0, en0, utun7, pdp_ip0] <- full-tunnel config, normal 00:14:26 UDP bind has been updated v4 - started 00:14:38 Stopping tunnel: reason: The user stopped the NE 00:14:41 Network settings (start): remote=<server> mtu=1280 dns=<dns> ipv4 inc/exc=3118/1 ipv6 inc/exc=0/0 <- split config 00:14:42 WireGuard backend started with handle 0 00:14:42 Network change detected with unsatisfied route and interface order [en0, en0, pdp_ip0, utun7] 00:15:08 peer(...) - Receiving keepalive packet 00:15:31 peer(...) - Receiving keepalive packet 00:15:46 Network change detected with unsatisfied route and interface order [en0, en0, pdp_ip0, utun7] 00:15:46 Connectivity offline, pausing backend. 00:15:47 getRuntimeConfiguration: adapter not started (state=temporaryShutdown) ... ~30 more path updates over 22 minutes, every one `unsatisfied`, [en0, en0, pdp_ip0, utun7] ... 00:38:14 Network change detected with satisfied route and interface order [en0, en0, pdp_ip0] 00:38:14 Connectivity online, resuming backend. 00:38:14 Stopping tunnel: reason: The user stopped the NE 00:38:51 Network settings (start): ... ipv4 inc/exc=2/1 ipv6 inc/exc=1/0 <- full-tunnel config again 00:38:52 Network change detected with satisfied route and interface order [en0, en0, utun7, pdp_ip0] 00:38:52 peer(...) - Received handshake response ``` Note the interface order: with the full-tunnel config utun7 is second and the path is `satisfied`; with the split config utun7 is last and the path is `unsatisfied`, even though keepalives from the server were still arriving right before the pause. The full log is available privately if needed. **Smartphone:** - Device: iPhone 17 - OS: iOS 26.6.1 - Version: AmneziaVPN 5.0.3.0 (App Store) **Server:** - OS: Debian 13, self-hosted AWG 3.1 (amneziawg-go in the Amnezia Docker container) **Additional context** - Android devices with the same split config are stable. - In this log the two configs point to two different servers, but they run the identical amneziawg-go binary. Earlier, on a single server, a phone that was stable for days on full tunnel started dropping within hours after switching to the split config. - This is a different mechanism from amnezia-vpn/amneziawg-apple#47 (reused source port on a `satisfied` path). Here the path itself is reported `unsatisfied` and the adapter pauses.
Author
Owner

@drenderyga commented on GitHub (Sep 27, 2026):

I’m seeing a very similar issue on an iPhone 13 Pro Max running iOS 27.0 with AmneziaVPN 5.0.3.0.

In my case, the split-tunneling configuration is quite large:

ipv4 inc/exc=2/12820

The tunnel connects successfully and AWG handshakes are received, but then I repeatedly get:
Network change detected with unsatisfied route Connectivity offline, pausing backend.

followed by:
setTunnelNetworkSettings timed out after 5 seconds; proceeding anyway

After that, the WireGuard backend is restarted.

What is interesting: the exact same split-tunneling list works fine on an iPhone 16 Pro Max, while the iPhone 13 Pro Max is unstable.

Both devices use the same Amnezia setup and split-tunneling list, so this may be related to how iOS NetworkExtension handles a large number of routes on different devices / under different resource or timing conditions.

The server itself appears fine because Received handshake response continues to appear in the logs.

I can provide the full log if needed.

<!-- gh-comment-id:5852869255 --> @drenderyga commented on GitHub (Sep 27, 2026): I’m seeing a very similar issue on an iPhone 13 Pro Max running iOS 27.0 with AmneziaVPN 5.0.3.0. In my case, the split-tunneling configuration is quite large: ipv4 inc/exc=2/12820 The tunnel connects successfully and AWG handshakes are received, but then I repeatedly get: `Network change detected with unsatisfied route Connectivity offline, pausing backend. ` followed by: `setTunnelNetworkSettings timed out after 5 seconds; proceeding anyway` After that, the WireGuard backend is restarted. What is interesting: the exact same split-tunneling list works fine on an iPhone 16 Pro Max, while the iPhone 13 Pro Max is unstable. Both devices use the same Amnezia setup and split-tunneling list, so this may be related to how iOS NetworkExtension handles a large number of routes on different devices / under different resource or timing conditions. The server itself appears fine because Received handshake response continues to appear in the logs. I can provide the full log if needed.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#1488
No description provided.