Posts

Post not yet marked as solved
1 Replies
716 Views
I'm trying to implement a packet sniffer similar to https://www.charlesproxy.com/ios/ using iOS's NetworkExtension framework.ObjectiveSo, that's a big goal and I'm breaking it down into a tiny piece right now: I want to see the os_logfrom my NEPacketTunnelProvider (bottom box in diagram)(Note that I dropped an image here - hoping that it appears in the post. If not, you can view this post at https://stackoverflow.com/questions/56619465/ios-implementing-netunnelproviderprotocol-with-no-remote-server)What I have done so farI have created a NetworkExtension target on type PacketTunnel. This is the code snippet in the 3rd box in the diagram titled "NEPacketTunnelProvider".I have included the "app groups", "personal VPN", and "Network extension" capabilities from within XCode.QuestionI am looking in the Console.app to see the output from os_log("STARTING TUNNEL!!!!"). When I load the configuration and make the call to startVPNTunnel(), why is my TunnelProvider code never called?I have verified that startVPNTunnel() is being called by placing a breakpoint in my code.
Posted Last updated
.