Selectively route packets outside PacketTunnel

Once NEPacketTunnelProvider is up and running, and the extension is reading packets from the TUN interface, is there a way to not route upstream packets through UDP links (temporarily or per packet destination)? In other words, after we get packet(s) via packetFlow->readPackets, can we skip the tunnel and send them back to the normal stack processing?

In other words, after we get packet(s) via packetFlow->readPackets, can we skip the tunnel and send them back to the normal stack processing?

Not without creating connectivity issues for your clients sending the traffic. If you wish to only handle certain amounts of traffic then configure your tunnel as a split tunnel and only the desired traffic will get sent to your tunnel.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Selectively route packets outside PacketTunnel
 
 
Q