NEPacketTunnelProvider

hi all, i use NEPacketTunnelProvider and i use createUDPSession for forwarding packet, i can forwarding packet (especially dns packet) it is ok. but how can i forward target other udp packet or re-delivery these packages

Replies

You’ll have to be more specific about what the issue is here. To start, what platform are you working on?

Next, any packet forwarding problem is composed of four parts:

  1. Getting the packet to forward

  2. Forwarding it

  3. Getting the response

  4. Forwarding that

Which step is causing you problems? If you’re not sure, my recommendation is that you use an RVI packet trace to see what’s happening on the ‘wire’. See Recording a Packet Trace.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"