Unable to load Network Extension in iOS

How to send DNS data packets to a custom DNS server using NEDNSProxyProvider on a supervised device

I am developing Network Extension using DNS Proxy Capability So I implemented like this reference link https://developer.apple.com/forums/thread/678464?answerId=671795022#671795022 I tried same steps but Received data method not trigger and WriteDataGram faluire

@meaton - Can you please suggestion on this issue.

Thanks, Veera

Is your NE provider actually running? I recently posted Debugging a Network Extension Provider with specific advice on how to check that.

Share and Enjoy

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

@eskimo - NE Provider running , I am able to do debugging Extension Provider.

I implemented like this thread https://developer.apple.com/forums/thread/678464?answerId=671795022#671795022 but I passed  endPoint = NWHostEndpoint(hostname:customDNSIP, port:CustomDNSPort) and here this connection also  connection = NWConnection(host:customDNSIP, port:customDNSPort , using: .udp)

But Connection State always getting .waiting and error was "The operation couldn’t be completed. (Network.NWError error 1.)"

Could please help on this issue

Note: When I Enable DNSProxy in settings iPhone Device Internet connection was stoped. Unable to browse any url getting hanged and not process url

Thanks, Veera

When I Enable DNSProxy in settings iPhone Device Internet connection was stoped.

If you enable a system-wide DNS proxy and that DNS proxy is broken in some way then, yes, that’ll cause all network connections to fail.

I implemented like this thread

So that code is running inside your proxy? If so, does the same code work if you run it outside of the proxy. See the discussion of unit tests in the But Should You? section of Debugging a Network Extension Provider.

Share and Enjoy

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

Unable to load Network Extension in iOS
 
 
Q