networkextension

iOS keep showing “Proxy Authentication Required” dialog even after passing username and password using NetworkExtension

蓝咒 提交于 2019-12-23 03:43:23
问题 I am using NETunnelProviderManager for implementing VPN with HTTP/HTTPS proxy. I have Basic Authentication from the Proxy server to authenticate with it, and I need to update password at regular time interval. So to set credentials for Proxy Server I have implemented somethink like below: self.vpnManager.protocolConfiguration.proxySettings.HTTPSServer = [[NEProxyServer alloc] initWithAddress:proxyServer port:proxyPort]; self.vpnManager.protocolConfiguration.proxySettings.HTTPSServer

“Error Domain=NEVPNErrorDomain Code=1 \”(null)\“” While connecting VPN server

青春壹個敷衍的年華 提交于 2019-12-19 03:38:38
问题 I'm getting "Error Domain=NEVPNErrorDomain Code=1 \"(null)\"" only first time while connecting to VPN server, later onwards it works perfectly. I've checked NEVPNErrorDomain Error 1 when trying to start TunnelProvider network extension similar to my problem and followed the way its said in this solution but still getting same error. So here is my code for connecting to VPN Server using Network Extension. func initVPNTunnelProviderManager(){ self.vpnManager.loadFromPreferences { (error) ->

How to port a network extension NEPacketTunnelProvider class from Obj-C/Swift to Xamarin C#?

廉价感情. 提交于 2019-12-08 14:01:50
问题 I'm trying to figure out how to make a network extension so that my iOS app can programmatically open an custom VPN tunnel in C#, but looking at some similar Obj-C projects I'm not sure if it's possible in Xamarin (as I don't see a network extension project in Visual Studio) and how to port a what I gather is a required PacketTunnelProvider class which I think must be present and listed as an extension in the plist.info first...I'm in particular having most trouble in how to port the parts of

Custom OpenVPN iOS client [closed]

僤鯓⒐⒋嵵緔 提交于 2019-12-07 08:42:39
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I'm working on a custom iOS OpenVPN client. I found this native OpenVPN client core sources https://staging.openvpn.net/openvpn3/ I can build it for the iOS platform. How can I integrate this OpenVPNClient as an extension to set up an OpenVPN network for iOS devices from my

Call to NEHotspotHelper.register never returns

我只是一个虾纸丫 提交于 2019-12-06 14:11:32
I am working on an iOS app which has a requirement to automatically connect to a WiFi network. We had requested for a NEHotspotHelper extension from Apple which is approved. Now I am trying to auto connect to the WiFi network around. But the call to method NEHotspotHelper.register never returns. I have added the entitlement com.apple.developer.networking.HotspotHelper in the entitlement file of the app and am also using a newly created provisioning profile with the said entitlement enabled. Trying to get it work from last week. Looks like a small thing which I am finding difficult to catch.

NEVPNErrorDomain Error 1 when trying to start TunnelProvider network extension

时光毁灭记忆、已成空白 提交于 2019-12-06 00:44:30
I'm trying to make a custom TunnelProvider network extension by starting with the XCode template for the TunnelProvider and then adding the code to the host app in order to configure it and start it. I am using an instance of NETunnelProviderManager to configure it, and when I call saveToPreferencesWithCompletionHandler: I get success (error = 0). However, when I call startVPNTunnelAndReturnError: on the (non-zero) connection I always get the below error: Error Domain=NEVPNErrorDomain Code=1 "(null)" I have read through all of the related Apple documentation as well as tried to make my program

Custom OpenVPN iOS client [closed]

扶醉桌前 提交于 2019-12-05 15:37:22
I'm working on a custom iOS OpenVPN client. I found this native OpenVPN client core sources https://staging.openvpn.net/openvpn3/ I can build it for the iOS platform. How can I integrate this OpenVPNClient as an extension to set up an OpenVPN network for iOS devices from my application? Is it possible? I think you should use the Network Extension framework to extend VPN capabilities of an iOS device. The documentation can be found at the link: https://developer.apple.com/library/ios/documentation/NetworkExtension/Reference/Network_Extension_Framework_Reference/ As stated at the beginning of

How to use NEDNSProxyProvider in iOS 11

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 23:58:43
On the networking side, DNS Proxy is one of the biggest features of iOS 11. But they haven't provided much documentation or samples regarding it. There's a talk on it as well where they have just given a description of what is possible with DNS Proxy. I want to create a working sample of it but didn't get success till now. So I have created a Network Extension with DNS Proxy entitlements and added a DNS Proxy Provider. Here's the code: class DNSProxyProvider: NEDNSProxyProvider { let defaults = UserDefaults(suiteName: "group.com.securly.dnsProxy") override init() { NSLog("QNEDNSProxy.Provider:

iPadOS: Network connected via NEHotspotConfiguration disconnects after a while

你离开我真会死。 提交于 2019-12-03 08:50:11
问题 My app uses NEHotspotConfigurationManager to connect itself to a certain device using a Wi-Fi. The device acts as an WPA2 access point. In older iOS versions (iOS 12 and lower) everything worked fine, but in iPadOS/iOS 13 the device is being disconnected after a while every single time. How to keep a connection on without storing NEHotspotConfiguration permanently? I suspect that it has something to do with a new feature - Multiple Windows (which is not supported by my app). The reason is

iPadOS: Network connected via NEHotspotConfiguration disconnects after a while

偶尔善良 提交于 2019-12-02 22:56:08
My app uses NEHotspotConfigurationManager to connect itself to a certain device using a Wi-Fi. The device acts as an WPA2 access point. In older iOS versions (iOS 12 and lower) everything worked fine, but in iPadOS/iOS 13 the device is being disconnected after a while every single time. How to keep a connection on without storing NEHotspotConfiguration permanently? I suspect that it has something to do with a new feature - Multiple Windows (which is not supported by my app). The reason is that in my NEHotspotConfiguration I set joinOnce flag to true (since the device's network should never be