Personal VPN configuration, DisconnectOnIdleTimer

Hi,


I'm trying to implement an IKEv2 Personal VPN connection that should correspond to a mobileconfig I've been given.

The VPN connection is working fine, but I don't know how to programmatically define the entries "DisconnectOnIdle" and "DisconnectOnIdleTimer" from the mobileconfig:


<key>PayloadContent</key>

<array>

<dict>

<key>DisconnectOnIdle</key>

<integer>1</integer>

<key>DisconnectOnIdleTimer</key>

<integer>120</integer>

<key>IKEv2</key>

<dict>

<key>AuthName</key>

...


The only place where I found these keys is in the System Configuration Programming Guidelines, for the PPP protocol (https://developer.apple.com/library/content/documentation/Networking/Conceptual/SystemConfigFrameworks/SC_UnderstandSchema/SC_UnderstandSchema.html#PPP). But I'm not sure how to change them.


Does anybody know how to set these?


Thanks a lot,

Andreas

Replies

As far as I can tell that property is not exposed via NEVPNManager. If this is important to you, recommendation is that you file an enhancement request for new API fro this.

Please post your bug number, just for the record.

Share and Enjoy

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

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

Thank you for the response.


For reference, I've created a feature request in bug reporter (r. 34591651).


cheers, Andreas