QNE2TransparentProxyMac sample code

I'm working on a project that says it's to be based on the QNE2TransparentProxyMac sample code but don't have the original sample code. Can I get a pointer to the sample code and documentation please?

Google search didn't find it for some reason.

Thanks!

  • Peter
Answered by Peter_Si in 852075022

Checking for crash logs was the hint I needed. I think I found the problem. Thanks!

Checking for crash logs was the hint I needed. I think I found the problem. Thanks!

With my UDP Flow Copier working as demonstrated by the fact that it is proxying DNS traffic successfully, I am finally writing tests to verify UDP packet filtering. I'm sending packets to a public UDP echo server and reading the response successfully. In my initial testing however the TransparentProxyProvider System Extension is not intercepting my UDP traffic. handleNewUDPFlow() is being called for DNS but not for my test case UDP echo sends and receives. I've tried sending UDP with both GCDAsyncSocket and connection = NWConnection(host: host, port: port, using: .udp)

Is there some other criteria for UDP datagrams to be intercepted? Google search suggests this might be a known issue for connected or async UDP sockets.

Please start a new thread for this issue. We’re now onto page 2 of this thread, and DevForums isn’t the best at handling long threads.

Use the same topic, subtopic, and tags as this thread; that way I’ll be sure to see it go by.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

QNE2TransparentProxyMac sample code
 
 
Q