NEFilterManager.Grade.firewall is not working with SimpleFirewall sample app

I explored Apple's Filtering Network Traffic sample.

I noticed for me, FilterDataProvider's startFilter method is called only when I make filterManager.grade = .inspector before calling filterManager.saveToPreferences.

Could someone help why the startFilter is not called when I leave the filterManager's grade property with it's default value. i.e NEFilterManagerGradeFirewall?

https://developer.apple.com/documentation/networkextension/filtering_network_traffic

Hmmm, that’s weird. I have no good explanation as to why you’re seeing this behaviour.

Are you working in a managed environment? If so, are you able to test this on a ‘clean’ Mac, once that doesn’t have any of your enterprises management software installed? It’s possible that you’re hitting some sort of conflict with your enterprise’s setup.

I usually do testing like this in a VM, which gives me complete control over the target machine.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

NEFilterManager.Grade.firewall is not working with SimpleFirewall sample app
 
 
Q