iOS: listening on tunnel interface in Network Extension

Hi, thanks to https://developer.apple.com/forums/thread/712626 I understand that NECP, is protecting my Network Extension from listening on the tunnel interface provided by that Network Extension. However what I try to achieve is to have a sort of keepalive/ping (udp) I send through the tunnel to monitor tunnel stability and have some measures in case tunnel quality decreases or tunnel becomes unreliable. Is there any way to get a listening UDP socket and sending UDP packets through the tunnel inside such a Network Extension?

Is there any way [of] sending UDP packets through the tunnel inside such a Network Extension?

Yes. The canonical way to do this is with the in-provider networking APIs, but you have other options. See this post for more.

Share and Enjoy

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

iOS: listening on tunnel interface in Network Extension
 
 
Q