How to disable user actions in Network Extension VPN details

Hello,
I'm developing a network extension:
  • NEAppProxyProvider managing the extension logic (com.apple.networkextension.app-proxy)

  • NETransparentProxyManager for the configuration in System Preferences

When the NETransparentProxyManager successfully executes saveToPreferencesWithCompletionHandler and the NEAppProxyProvider connects, the item/network interface in System Preferences -> Network is added and connected (green color) and is being shown as a VPN.

In the detail of the item there are also possibilities for a user/admin to Disconnect the VPN. When I also set NEOnDemandRuleConnect to the NETransparentProxyManager, there is also a checkbox to disable it.

My question: Is it possible to hide these buttons and checkboxes in details of the VPN or is it shown by design? There are also text fields like Server Address and Account Name.
The other type of Network Extension com.apple.networkextension.filter-data doesn't provide such actions for a user in its details.

My question: Is it possible to hide these buttons and checkboxes in details of the VPN or is it shown by design? There are also text fields like Server Address and Account Name.
The other type of Network Extension com.apple.networkextension.filter-data doesn't provide such actions for a user in its details.

Hiding them, not to my knowledge.

For specific types of Web Filters there are different options to auto enable here:
<https://developer.apple.com/documentation/devicemanagement/webcontentfilter>

However, not to hide or disable interaction. This would be an enhancement request.
<https://developer.apple.com/bug-reporting/>

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
How to disable user actions in Network Extension VPN details
 
 
Q