Post

Replies

Boosts

Views

Activity

Reply to Setup vpn settings for NEPacketTunnelProvider
When trying something like class PacketTunnelProvider: NEPacketTunnelProvider {     override func startTunnel(options: [String : NSObject]?, completionHandler: @escaping (Error?) -> Void) { let networkSettings = NETunnelNetworkSettings(tunnelRemoteAddress: "127.0.0.1") setTunnelNetworkSettings(networkSettings) { error in debugPrint(error)         completionHandler(error)         } I get the following error: Error Domain=NETunnelProviderErrorDomain Code=1 \"NEPacketTunnelNetworkSettings must be used with NEPacketTunnelProvider\" UserInfo={NSLocalizedDescription=NEPacketTunnelNetworkSettings must be used with NEPacketTunnelProvider}
Jan ’23
Reply to Need help with handling flows inside NEDNSProxyProvider
@eskimo Thanks for your reply. There's less mess in my head now) Regarding the high-level task I'm trying to achieve: basically, I need DNS settings but with an in-app on/off toggle. And since the use of dns settings requires the user to go into settings app, using that approach is a no-go. I'm well aware of MDM requirement when it comes to DNS proxy, that's not a problem.
Jan ’23
Reply to NEProvider creation failed
@meaton, the steps you have provided did get the expension up and running. Thanks But can you please explain a bit more about serverAddress. I don't understand fully how DNS works it seems. My idea was that with DNS Proxy one can intercept DNS requests and modify them (for example, route dns resolution requests to different dns servers based on some set of rules). So why does one need to point the proxy traffic towards some specific server? And what kind of server should that be?
Jan ’23