How to update VPN configuration from Network extension

Is it possible to update the existing VPN configuration at runtime within the network extension code? Say I have a VPN profile "ABC" when I turn on that VPN profile can i modify the configurations like set up/update on demand VPN rule ?

Answered by DTS Engineer in 329556022

From within the Network Extension provider? If so, the answer is “No.”

You’re not the first person to ask for this, something that I found quite surprising. I recommend that you file an enhancement request describing your requirements.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer

From within the Network Extension provider? If so, the answer is “No.”

You’re not the first person to ask for this, something that I found quite surprising. I recommend that you file an enhancement request describing your requirements.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
How to update VPN configuration from Network extension
 
 
Q