@DTS Engineer
When I enable and disable it, I do receive the startFilter and stopFilter messages, but I no longer receive the handleNewFlow message. As soon as I receive the stopFilter message, the network returns to normal. By the way,
let loNetworkRules4 = NENetworkRule(
remoteNetwork: NWHostEndpoint(hostname: "127.0.0.1", port: "0"),
remotePrefix: 0,
localNetwork: NWHostEndpoint(hostname: "127.0.0.1", port: "0"),
localPrefix: 0,
protocol: .any,
direction: .any
)
A rule like this has also caused complete network outages on many versions of the system. Speaking of which, I urgently need to find a solution. So, I have two requests:
When this issue occurs, how can I collect system logs to help us pinpoint the specific problem (it could be a system issue or an issue with our extension)?
Is there a way to quickly reset the network? You mentioned earlier that there is a process similar to launchd responsible for the entire lifecycle of the system extension. Can I kill this process to achieve a network reset?
thanks
Topic:
App & System Services
SubTopic:
Networking
Tags: