Questions tagged [networkextension]

The Network Extension framework contains APIs that can be used to customize and extend the core networking features of iOS and macOS.

Ref. Links : Network Extension - Apple

198 questions
93
votes
5 answers

Implementing VPN with L2TP protocol in iOS app

In iOS settings, there are options to create a VPN configuration using IPSec, IKEv2, and L2TP. Using the NetworkExtension framework from Apple there's an option to create VPN using IPSec and IKEv2 protocols only. They do work but problem is that I…
Najdan Tomić
  • 2,071
  • 16
  • 25
23
votes
1 answer

iPadOS: Network connected via NEHotspotConfiguration disconnects after a while

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…
19
votes
0 answers

How to setup Packet Tunnel Provider with device-internal VPN

I'm trying to build an iOS app that lists all requests that are made from the device, like Charles Proxy does. Much like Charles, my idea has been to create a Packet Tunnel Provider and have it setup a local VPN connection without an external VPN…
Daniel Saidi
  • 6,079
  • 4
  • 27
  • 29
18
votes
1 answer

NEPacketTunnelProvider Sniffer iOS

As I recently found this paper describing a sniffing mechanism for iOS using Apple's NEPacketTunnelProvider Extension, I got curious and it made me want to understand it from a technical point of view. As I usually don't work at a deep network layer…
thellmei
  • 243
  • 2
  • 9
16
votes
8 answers

NEHotspotConfigurationErrorDomain Code=8 "internal error."

I'm using NEHotspotConfigurationManager with on iOS 11 iPhone to connect to specific Wi-Fi spot and then disconnect from it. Here is the code: if (@available(iOS 11.0, *)) { NEHotspotConfiguration *configuration =…
Yason Din'Alt
  • 163
  • 1
  • 9
16
votes
1 answer

How to use NEDNSProxyProvider in iOS 11

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…
mayuur
  • 4,736
  • 4
  • 30
  • 65
10
votes
3 answers

NEHotspotConfigurationManager getting this alert:"Unable to join the network" while error is nil

So i am trying to monitor the connection status by closers : func reconnect(success: @escaping () -> Void, failure: @escaping () -> Void) { let manager = NEHotspotConfigurationManager.shared let ssid = CameraManager.camera.uuid let…
ironRoei
  • 2,049
  • 24
  • 45
10
votes
2 answers

NEVPNManager check is connected after restart the app?

I coding a VPN tool, using the NetworkExtension framework. I can connect IPSec through NEVPNManager.sharedManager, and can grab the notification when VPN connect status changed. But when I kill the app, and reopen it, the NEVPNManager.Connect.Status…
8
votes
1 answer

iOS 13: Network connected via NEHotspotConfiguration disconnects after a few seconds

I use NEHotspotConfigurationManager in a native module developed for a react native app, to connect to a device that exposes an open wifi hotspot. In older iOS versions (iOS 12 and lower) it worked fine, but in iOS 13 the device is being…
8
votes
0 answers

Development Deployment for Network Extension-enabled app

I have an app which contains a Network Extension and when I run it from within XCode, it uses the profiles I have created with the proper entitlements and works fine without issue. However, when I archive the project and select the same team, the…
Locksleyu
  • 5,192
  • 8
  • 52
  • 77
7
votes
0 answers

Debug Network Extension

I have added NEPacketTunnelProvider extension in my app to connect openvpn but connection status is disconnected without any error. Now i want to debug the extension using breakpoints but my breakpoints not called in extension , i already do lot of…
Dr Chander
  • 71
  • 3
7
votes
3 answers

Network Extension entitlement, how to enable it?

I need to use Network Extension features in an app, particularly to use the Proxy features. The doc says: Except when you use the NEHotspotHelper class, you do not need to obtain entitlements from Apple to use Network Extension classes. However, you…
6
votes
1 answer

NETunnelProvider stop receiving packet on iOS 14?

I'm having a Local VPN app that using "NETunnelProvider / NetworkExtentsion", In my solution, I created a split tunnel on the device itself to track the DNS request, using NEKit I was able to peek inside the packets and filter the ongoing request…
Omarj
  • 1,151
  • 2
  • 16
  • 43
6
votes
2 answers

Is there a way to add the Network Extensions capability to a macOS app without joining the Apple Developer Program?

I want to build a macOS app that filters specific network requests so I need to add the NetworkExtensions capability. But after I add a NetworkExtensions capability, I get the following message: Your development team, "Potato Dev2", does not support…
6
votes
1 answer

How to let iOS/macOS update our app while its NetworkExtension is running?

We have an app that registers and runs a NetworkExtension (specifically NEPacketTunnelProvider) on both iOS and macOS. This works fine (although not in the iOS simulator, of course, known limitation). However, when the network extension is running,…
apenwarr
  • 10,838
  • 6
  • 47
  • 58
1
2 3
13 14