Post

Replies

Boosts

Views

Activity

Capturing localnetwork traffic in NETransparentProxyProvider
Hi, We have implemented NETransparentProxyProvider with following network Rules: 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) ] Now on the same machine I have started the webserver like: python -m SimpleHTTPServer Now if I execute "curl 127.0.0.1:8000" or "curl localhost:8000", I don't see any flows captured by NETransparentProxyProvider, but I see request reaching properly to the web server, and if I execute "curl example.com", I see flows related to it. Please let me know how to capture flows of local network in NETransparentProxyProvider. Thanks
2
0
839
Jun ’21
Not able to start Proxy and VPN tunnel when there is no network
Not able to startTunnel from App proxy provider or NETunnelProvider , when there is no network on the machine. Whenever I am starting tunnels , I get change of status to disconnected. in the system log I get as below [com.apple.networkextension:] NESMVPNSession[Primary Tunnel:XXXXX:YYYYY:(null)] in state NESMVPNSessionStateIdle: received start message [com.apple.networkextension:] NESMVPNSession[Primary Tunnel:XXXXX:YYYYY:(null)]: Leaving state NESMVPNSessionStateIdle [com.apple.networkextension:] NESMVPNSession[Primary Tunnel:XXXXX:YYYYY:(null)]: Entering state NESMVPNSessionStatePreparingNetwork [com.apple.networkextension:] NESMVPNSession[Primary Tunnel:XXXXX:YYYYY:(null)]: No network available [com.apple.networkextension:] NESMTransparentProxySession[Primary Tunnel:XXXXX:YYYYY:(null)]: Leaving state NESMVPNSessionStatePreparingNetwork [com.apple.networkextension:] NESMTransparentProxySession[Primary Tunnel:XXXXX:YYYYY:(null)]: Entering state NESMVPNSessionStateStopping, timeout 20 seconds Please let me know is there a way to start tunnels when there is no network ?
2
0
866
Mar ’21