Failed to find a com.apple.networkextension.filter-data extension inside of app

Hello.

We are facing a problem when loading a network extension. It's installed and configured but the module is not loaded. This is the specific error:

nesessionmanager NEFilterPlugin(com.protection.agent.next[inactive]): Sending start command

nesessionmanager com.protection.agent.next[inactive]: starting

neagent Failed to find a com.apple.networkextension.filter-data extension inside of app com.protection.agent.next

nesessionmanager com.protection.agent.next[395]: Tearing down XPC connection due to setup error: Error Domain=NEAgentErrorDomain Code=2 "(null)"

nesessionmanager com.protection.agent.next[395]: XPC connection went away

We think it is something to do either with de Info.plist or the entitlements file but we don't find the problem.

We would appreciate it if you could help us with this.

Thanks a lot in advance

A few questions here:

  1. Is this a Network App Extension on iOS or MacOS? Note that there is a difference between a Network App Extension on macOS and a Network System Extension on macOS and that is why I am asking. It looks like it's a Network App Extension but I just want to make sure.

  2. Can you provide the Info.plist for the extension?

  3. Can you provide the Entitlement files for both the extension and the container/host app?

  4. What is the bundle identifier(s) of both the extension and container/host app?

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

Thanks for your answer Matt, we appreciate the questions. They have helped to clarify some points.

It is a network app extension on MacOS.

Revising the code we noticed that we had left a misconfiguration from previous tests when establishing the network extension configuration. We had set:

filterPackets = true
filterSockets = false

But now we need:

filterPackets = false
filterSockets = true

After changing this, the extension was successfully loaded.

After changing this, the extension was successfully loaded.

Great news!

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Failed to find a com.apple.networkextension.filter-data extension inside of app
 
 
Q