My app is used to manage a Personal VPN configuration with NEVPNManager and a DNS settings configuration with NEDNSSettingsManager.
Both configurations work as expected when used separately, but after DNS settings configuration is saved, saving Personal VPN configuration returns an error:
In a different order, when DNS configuration is saved and enabled after saving the VPN configuration, disconnecting VPN disables previously enabled DNS configuration.
Tested on:
https://github.com/jurajhilje/DOHIKEv2Demo
Both configurations work as expected when used separately, but after DNS settings configuration is saved, saving Personal VPN configuration returns an error:
Code Block Error Domain=NEConfigurationErrorDomain Code=10 "permission denied"
In a different order, when DNS configuration is saved and enabled after saving the VPN configuration, disconnecting VPN disables previously enabled DNS configuration.
Tested on:
iOS 14.4
iOS 14.5 Beta 2
https://github.com/jurajhilje/DOHIKEv2Demo
Thanks. First I would open an enhancement request for this exact scenario; using NEVPNManager and NEDNSSettingsManager together from one container application.I got some logs and i see an error message you suspected:
Do you know of a possible workaround for this conflict?
Next, regarding a workaround, I would create a separate container app for each NEVPNManager and NEDNSSettingsManager, that way they both will be mapped back to different bundle identifiers.
Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com