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
Post
Replies
Boosts
Views
Activity
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 ?
Hi,
we have observed in BigSur that if proxy-server fails which is provided in system settings then NSURLSessionDownloadTask falls back to go direct.
So is there a way to find whether NSURLSessionDownloadTask response has come through proxy or direct. ?
Hi,
We are working on app for MacOS where we are using NetworkExtension and NEPacketTunnelProvider.
We would like originate a connection from that app using boost::asio and redirect the flow through tuninterface of Nepackettunnelprovider so that we can force the connection to go through our tunnel.
Currently we observe that this connection is not going through extension's tunInterface.
Please let me know if its possible and how ?
Options:
1) do we need to use createTCPConnectionThroughTunnel
and not boost::asio ?
2) or use tcpproxy at App layer.