localEndpoint is coming as 0.0.0.0 in NEFilterDataProvider

Hi,


I have application on MacOS Catalina where I have written simple application to catch the flow in NEFilterDataProvider.

In handlenewFlow function I am able to capture all flows, and I believe in MacOS all flows would be NEFilterSocketFlow.

I am able to get valid remoteEndpoint, but localEndpoint is coming as 0.0.0.0 for all flows with valid port number.


First Question is 0.0.0.0 coming as localEndpoint is valid ?


When I am executing curl , I am able to capture that flow also but localEndpoint is coming as 0.0.0.0:0 i.e.

PORT is also coming as 0.


Please let me know if it is correct, do I need to configure anything ?


Thanks for your help

Kumar

Depends on your routing. 0.0.0.0 can be used as the default route because nothing else is matches your local traffic with an interface, so in this case, yes, it would be valid.

| First Question is 0.0.0.0 coming as localEndpoint is valid


Matt Eaton

DTS Engineering, CoreOS

meaton3 at apple.com

Also, if you let some data flow through the connection you should see a valid local endpoint because the flow has latched it's source endpoint info.



Matt Eaton

DTS Engineering, CoreOS

meaton3 at apple.com

Hi,


In my application I have both FilterDataProvider and PacketTunnelProvider implemented.

For my application I need valid localendpoint in FilterDataProvider before sending first packet through tunnelpacketprovider to make some decision in FilterDataprovider, and based on that decision only I want to send first packet through Packettunnelprovider.


And in PacketTunnelProvider , I am able to parse valid localendpoint from the packets but FilterDataProvider doesn't show valid localEndpoint.


Please let me know how can I proceed further.


Thanks

Kumar

Kumar,


I think it would be best to open a DTS tech support incident so that I, or Quinn, can take a closer look at this issue.


Matt Eaton

DTS Engineering, CoreOS

meaton3 at apple.com

localEndpoint is coming as 0.0.0.0 in NEFilterDataProvider
 
 
Q