When I tried to run a DNS Proxy while I had a PacketTunnelProvider VPN actively connected, the DNS proxy appeared to start but didnt receive any DNS flows.
If I start the DNS Proxy first, it will receive proxied flows for the DNS queries. But as soon as I connect a PacketTunnelProvider VPN, the DNS queries are no longer sent to the proxy and I see the following syslog output:
Nov 15 15:50:04 iphone nesessionmanager(NetworkExtension)[216] <Notice>: -[NESMSession setStatus:]:753 NESMDNSProxySession[Mobility:8C06EFC5-13C0-4253-97C0-EE588D8CCBA4]: status changed to disconnected, last stop reason Configuration was superceded by another configuration
Is there any way to run both a DNS Proxy Provider Network Extension and a Packet Tunnel Provider Network Extension simultaneously?
It’s better to reply as a reply, rather than in the comments; see Quinn’s Top Ten DevForums Tips for this and other titbits. (Fortunately you @ mentioned me, otherwise I would’ve never seen this.)
Do you know if it's still true that
NEDNSProxyProvideris incompatible with Always-On VPN?
This has not changed. When the Always On VPN [1] session activates, it specifically stops any existing sessions with the reason NEProviderStopReasonSuperceded. This includes sessions for normal VPN, Personal VPN, DNS proxy, and content filter.
AFAICT this interaction isn’t documented in the Apple Platform Deployment guide, and I encourage you to file a bug against the doc to improve that.
Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] Hmmm, sometime in the last 9 years Always On VPN lost its hyphen.