How to know NE System extension already running?

Hi,


I have NEAppProxyProvider based System Network extension on macOS 10.15.4. It is a transparent proxy. I have two queries:


1. How to know Network extension already running i.e. Network preference shows 'connected' on App loading time therefore App will not try to load again?

2. If NEAppProxyProvider transparent proxy gets crashed, how to enforce restart it again?


Regards,

Anand

1. How to know Network extension already running i.e. Network preference shows 'connected' on App loading time therefore App will not try to load again?

You can monitor the state of the VPN connection via the

connection
of the
NEVPNManager
.

If

NEAppProxyProvider
transparent proxy gets crashed, how to enforce restart it again?

App proxy providers are a form of VPN and thus are subject to the same VPN On Demand mechanisms. See

onDemandEnabled
and
onDemandRules
`.

Share and Enjoy

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

let myEmail = "eskimo" + "1" + "@apple.com"
How to know NE System extension already running?
 
 
Q