Questions tagged [nevpnmanager]

NEVPNManager, delivered as part of the iOS & macOS SDK's, is used to create and manage VPN configurations and to control the resulting VPN tunnel connections.

Each macOS and iOS application is allowed to create a single VPN configuration it can make use of. The NEVPNManager singleton instance corresponds to a single VPN configuration as displayed in the VPN Settings panel in the Settings app on iOS and the Network Preferences pane in the System Preferences application in macOS.

86 questions
2
votes
2 answers

Negotiation with the VPN server has failed (NEVPNProtocolIPSec, Swift 3.0.2)

guys. I'm trying to setup a VPN connection to my server, but something goes wrong. I've tried setting it up manually and it works. Here's my configuration code. The server object has a name and a correct host for sure and i tried disabling extended…
bitemybyte
  • 971
  • 1
  • 10
  • 24
2
votes
0 answers

iOS Vpn Connection

NEVPNProtocolIKEv2 *sec = [[NEVPNProtocolIKEv2 alloc] init]; sec.serverAddress = @"domain.com"; sec.remoteIdentifier = @"domain.com"; sec.username = @"username"; sec.localIdentifier = @"username"; sec.authenticationMethod =…
Mr Online
  • 21
  • 4
2
votes
0 answers

NEVPNManager.shareManager is shared between app and widget?

I am working on a vpn app which also includes the widget. I found that NEVPNManager.shareManager are different object when I call in app and widget, so the connection status and configuration is not shared. How could I get the real shared manager?
2
votes
1 answer

VPN connection using App Extension

I am using NEVPNManager to configure and connect VPN connection. Working great in App. Now i am integrating Today's App Extension to connect VPN. Problem im facing that Extension and App are creating different profile. How to use single VPN profile…
Dawood Mujib
  • 337
  • 4
  • 14
2
votes
1 answer

VPN is stopping during network is switching from wifi to mobile data. VPN is connected programmatically in iOS

I am using Network Extension framework for configure and connect VPN server programmatically. I can start and stop VPN. I have written following code to configure VPN in viewDidLoad. NEVPNManager *manager = [NEVPNManager sharedManager]; [manager…
Rayan Dsouza
  • 71
  • 1
  • 5
2
votes
1 answer

Mac App signed with Developer ID fails to start, I get com.apple.developer.networking.vpn.api entitlement is not allowed (error code -67050)

I am developing an application that runs on OSX and uses the NEVPNManager for IKEv2 connections introduced in El Capitan. In order to setup/activate a VPN connection it requires the "Personal VPN" entitlement. If I sign my application with a…
2
votes
0 answers

Verify P12 Certificate for VPN Conection

I want to connect Vpn via Code Using Network Extension framework . I have a P12 Certificate to make VPN Connection also a Root CA (Crt) Certificate to Verify the P12 Certificate . My problem is to verify The P12 certificate programatically . I am…
h.kishan
  • 681
  • 6
  • 20
2
votes
1 answer

NEVPNManager instance is showing nil

I had created network manager by using the below code. but as soon the first line of call is run the manager is being nil so any other methods are getting not effected. Can Anyone let me know that what wrong thing I had done ? NEVPNManager…
Esha
  • 1,328
  • 13
  • 34
2
votes
1 answer

Does a personal VPN created with NEVPNManager affect other apps?

I've found a few articles online such as this one which discuss using the new NetworkExtension.framework in iOS 8 and it's corresponding NEVPNManager class to create custom VPN configurations programatically. It's implied that these configurations…
Orion Edwards
  • 121,657
  • 64
  • 239
  • 328
1
vote
1 answer

stopVPNTunnel is not disconnecting the VPN connection in iOS

I have implemented one successful vpn connection. But When i close and Open app while the VPN is connected, then i can't disconnect the VPN. public func connectVPN() { //For no known reason the process of saving/loading the VPN configurations…
Wasi Sadman
  • 1,382
  • 1
  • 15
  • 27
1
vote
0 answers

NETunnelProviderSession startTunnel() doesn't start VPN connection

So im using PIATunnel library to start a VPN connection. The best I have managed to get so far is trying to connect to a VPN server which immediately gets disconnected. I want to be able to debug the issue and find out what happens after calling…
sam k
  • 1,048
  • 2
  • 14
  • 22
1
vote
1 answer

iOS VPN on Demand rules

I want to create a onDemandRule for VPN connnection in ios Requirement is as follows. If Both cellular and wifi is available and wifi ssid = "ABC" than only VPN will run otherwise it should stop. I have tried following OnDemandRule let…
Dinesh
  • 929
  • 7
  • 25
1
vote
0 answers

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

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…
Mrug
  • 4,963
  • 2
  • 31
  • 53
1
vote
2 answers

On iOS, is it possible to setup an NEPacketTunnelProvider VPN only for the containing app?

I'm currently writing a library that will be used by different apps. One of the features I would like to provide to clients of my library is the ability to setup a VPN using a custom tunneling protocol that will be utilized only by the client app. …
hopia
  • 4,880
  • 7
  • 32
  • 54
1
vote
1 answer

NEVPNManager connect to VPN only inside in application

I create application vpn with this toturial.but my problem is user can go to setting iPhone and connect to vpn.but I want user ONLY go to my application and connect to VPN. My question is what should I in code NEVPNManageruntil the user can't turn…
yahya
  • 321
  • 2
  • 16