Post

Replies

Boosts

Views

Activity

how to redirect flow originated from extension App through tunInterface.
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.
9
0
1.1k
Jul ’20
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
819
Feb ’21
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
778
Jun ’21