`NEPacketTunnelProvider` configuration rarely gets duplicated

Hello,

with iOS 16 (multiple betas), I noticed that our VPN configuration created with NEPacketTunnelProvider appears twice in Settings -> General -> VPN & Device Management.

I thought that this shouldn't be possible (even if I wanted to) because on iOS apps can provide just one configuration?

All the basic configuration for your VPN is static. providerBundleIdentifier & serverAddress are contants in the source code.

The only thing that gets changed is onDemandRules.

When I inspected the configurations details in Settings, they were identical.

because on iOS apps can provide just one configuration?

Really? But NETunnelProviderManager has a +loadAllFromPreferencesWithCompletionHandler: method, suggesting that there can be more than one.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hmm you are right, I seem to remember this limitation but have no idea where I first spotted it and cannot find it now. So perhaps I misremember this requirement.

These methods are also available on macOS - so I thought that having multiple VPN configs works there.

`NEPacketTunnelProvider` configuration rarely gets duplicated
 
 
Q