A tutorial for nefilterprovider

Hi
I searched in most websites and couldn't find a sample or a suitable tutorial for NEFilterProvider does it have any tutorial or sample code on the internet?!?!? because I do not know how to use it on the project ( should I add a new target? should I have a custom VPN? and etc...)
Answered by Systems Engineer in 670595022
Okay. Well, as a start you can evaluate the SimpleFirewall example on macOS just to see the functionality of how NEFilterProvider's work. Note that there is no iOS tutorial for NEFilterProvider's, but this should get you familiar with the general concepts and how the APIs work. Once you have an understanding here I would try to create a NEFilterDataProvider POC on iOS, as this provider will work between iOS and macOS. You can also test this in development on a local device and do not need a managed device for testing. Once you have a comfortable understanding you can move to a more iOS API, such as using NEFilterControlProvider and testing with MDM etc. Note that content filters on iOS are only supported for managed devices.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
What are your trying to do and on what plaforms, i.e., iOS, macOS, or both?

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com


What are your trying to do and on what plaforms, i.e., iOS, macOS, or both?

I am trying to create an application for iOS

Accepted Answer
Okay. Well, as a start you can evaluate the SimpleFirewall example on macOS just to see the functionality of how NEFilterProvider's work. Note that there is no iOS tutorial for NEFilterProvider's, but this should get you familiar with the general concepts and how the APIs work. Once you have an understanding here I would try to create a NEFilterDataProvider POC on iOS, as this provider will work between iOS and macOS. You can also test this in development on a local device and do not need a managed device for testing. Once you have a comfortable understanding you can move to a more iOS API, such as using NEFilterControlProvider and testing with MDM etc. Note that content filters on iOS are only supported for managed devices.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
A tutorial for nefilterprovider
 
 
Q