Our app is a VPN in the sense of TN3120: an NEPacketTunnelProvider that carries traffic for a set of networks (about 1,800 IPv4 prefixes in includedRoutes) through WireGuard to our servers. It sets enforceRoutes = true and includeAllNetworks = false, uses split DNS (matchDomains) for a set of domains, and has an On Demand connect rule for any interface. Its whole job is that traffic to those prefixes never leaves the device outside the tunnel.
On an iPhone 18 Pro Max with iOS 27.2.1, on Wi-Fi with cellular data and Connectivity Assist on (the defaults), we see this:
- nesessionmanager logs "Received a fallback advisory changed event", then "Consider alternate update, new advice: level: 4", listing our app and our extension.
- From then on, our app's URLSession and Network.framework connections race a cellular path (
pdp_ip0) beside the Wi-Fi path, where they go through our tunnel (utun10). - When the cellular path wins, a connection to an address inside one of our included routes goes straight out over
pdp_ip0. The tunnel interface's counters don't move, andNEVPNConnection.statusstays.connected. - The phone shows the notification that cellular data is working alongside Wi-Fi.
One connection's two branches, from the system log:
[C1.1.1.1.1 IPv4:443 in_progress channel-flow (… interface: utun10 …)][C1.1.2 Host:443 ready transform (… interface: pdp_ip0[lte] …)]
Routing your VPN network traffic says that with enforceRoutes "the system scopes the included routes to the VPN … This property supersedes the system routing table and scoping operations by apps", and WWDC25 session 234 says enforced routes "are honored at all times". That isn't what happens here. NEVPNProtocolIKEv2.enableFallback brings up a tunnel over cellular for traffic "eligible for Wi-Fi Assist and also requires VPN", but it exists only for IKEv2. In thread 844177, a DNS bypass by Connectivity Assist was dup'd to an existing bug.
Our questions:
- Is this expected on iOS 27, or a bug?
- Either way, is there a supported way for an
NEPacketTunnelProviderto keep connections that match its included routes in the tunnel, or out of Connectivity Assist, or to carry them over cellular asenableFallbackdoes for IKEv2? - Does
includeAllNetworks = trueprevent it? And doesNEDNSSettings.allowFailover = falsekeep the VPN's split-DNS domains from being resolved over cellular? - Can an app tell that Connectivity Assist is active on the current network, so it can tell the person?
I'll file a bug with a sysdiagnose, taken with the VPN logging profile installed, and post its number here.
I'll file a bug with a sysdiagnose, taken with the VPN logging profile installed, and post its number here.
Cool. That’s what I recommend that you do here.
To some extent it doesn’t really matter whether this is expected or not. If it’s not expected then it’s a bug that needs to be fixed. If it is expected then you should request that the design be changed to account for your circumstances. Either way, Feedback Assistant is your friend.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"