Hi all,
I am trying to listen to all inbound connections. I had initially given the direction to be inbound in the filter rule and I was not able to see any flow. Then I made the filter to be more generic so that I am able to receive connection irrespective of its direction. After this change I am only able to see flow of outward connections.
This is my filter code.
Is there any changes to be made to the above code ?
I am not able to see any inward flow. I tried setting up a server at particular port, when I had hit the endpoint I am not seeing any inward flow.
Thanks in advance
I am trying to listen to all inbound connections. I had initially given the direction to be inbound in the filter rule and I was not able to see any flow. Then I made the filter to be more generic so that I am able to receive connection irrespective of its direction. After this change I am only able to see flow of outward connections.
This is my filter code.
Code Block let anyHostAndPortRule = NENetworkRule( remoteNetwork: nil, remotePrefix: 0, localNetwork: nil, localPrefix: 0, protocol: .TCP, direction: .any ) let filterRule = NEFilterRule(networkRule: anyHostAndPortRule, action: .filterData) let filterSettings = NEFilterSettings(rules: [filterRule], defaultAction: .allow)
Is there any changes to be made to the above code ?
I am not able to see any inward flow. I tried setting up a server at particular port, when I had hit the endpoint I am not seeing any inward flow.
Thanks in advance