I noted 1 more thing that we are setting NETransparentProxyNetworkSettings with 127.0.0.1
can this be reason that my application is not catching localhost traffic.?
let settings = NETransparentProxyNetworkSettings(tunnelRemoteAddress: "127.0.0.1")
settings.includedNetworkRules = [
NENetworkRule(remoteNetwork: nil,
remotePrefix: 0,
localNetwork: nil,
localPrefix: 0,
protocol: .TCP,
direction: .outbound) ,
NENetworkRule(remoteNetwork: nil,
remotePrefix: 0,
localNetwork: nil,
localPrefix: 0,
protocol: .UDP,
direction: .outbound)
]
What is the recommendation of setting tunnelRemoteAddress while creating NETransparentProxyNetworkSettings
Topic:
App & System Services
SubTopic:
Core OS
Tags: