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
0
votes
1 answer

SecItemCopyMatching failed: -50 while trying to create a VPN connection programmatically in ios swift

I'm trying to to install the profile to create a VPN connection using Swift. It creates a VPN connection but I'm getting the following error and I'm not able to connect using that VPN connection. SecItemCopyMatching failed: -50 There is some issue…
0
votes
1 answer

How can we update NEVPNProtocol params like serverAddress and username?

My app acts like a VPN client to an IPSec VPN server (strongSwan). I have used NEVPNManager to setup the VPN profile. The code is something like this: #define KEY_PASSWORD @"password" #define PASSWORD @"password" #define VPN_SERVER…
Varun Singh
  • 1,135
  • 13
  • 18
0
votes
0 answers

IPSec iOS 10 VPN Configuration - On Demand not working

I have my vpn preferences configured as below: let newIPSec = NEVPNProtocolIPSec() newIPSec.serverAddress = AppConfiguration.getVPNEndPoint() newIPSec.authenticationMethod = NEVPNIKEAuthenticationMethod.sharedSecret newIPSec.username =…
Siddharthan Asokan
  • 4,321
  • 11
  • 44
  • 80
0
votes
1 answer

How to delete or change VPN profile configs in ios Objective-C

in my app, I will fetch VPN profile config from server and create a VPN model. at first I easily install profile if there isn't previous profile config. but if profile config changed I have to change installed profile config such as server address…
user2961534
0
votes
1 answer

The iOS9 NetworkExtension Packet Tunnel Provider Target should be how to use?

My code Open func Code in the picturePacket Tunnel Provider.m is so written, the ProvisioningProfiles are set up. It has already applied to the NetworkExtension.entitlements. I would like to run the main program, then execution target, but the…
Thomas
  • 1
  • 1
0
votes
2 answers

Swift - Connect to vpn using NEVPNManager

I get .ovpn file from Android and I have username and password and I should connect to vpn server but I am not sure how to do it. I tried something like this: let manager =…
Libor Zapletal
  • 13,752
  • 20
  • 95
  • 182
0
votes
1 answer

NEVPNManager iOS9

I used this guide to create VPN programmatically: http://ramezanpour.net/post/2014/08/03/configure-and-manage-vpn-connections-programmatically-in-ios-8/ NEVPNProtocolIPSec *p = [[NEVPNProtocolIPSec alloc] init]; p.username = [[alertView…
0
votes
1 answer

iOS 8 VPN Services, changing server address

Due to the terrible lack of documentation on the NEVPNManager, i'm going to state the question right here. I've seen a couple of VPN apps working with server switching. It's like installing a basic VPN profile and allowing it to be updated. However…
Benjamin de Bos
  • 4,334
  • 4
  • 20
  • 30
-1
votes
3 answers

How to disconnect VPN after app is terminated ios swift

Basically i am working on VPN app and i want to put restriction for free user in my app. Free user can connect to VPN with 1GB of limit like TunnelBear app. I have use this code and VPN connect/disconnect working fine. Create Personal VPN connection…
Kuldeep
  • 4,466
  • 8
  • 32
  • 59
-1
votes
1 answer

How to access PPTP/L2TP Protocol in iOS Swift?

I trying to implement custom vpn protocol for inside app to access odata api url. In my office they are using PPTP/L2TP protocol. Is there anyway to achieve this. Any help much appreciated pls..
PvUIDev
  • 95
  • 1
  • 9
  • 38
-1
votes
1 answer

On the Mac App Store, is the NEVPNManager allowed to be used?

On the Mac App Store, is the NEVPNManager allowed to be used to build a VPN client personalised for a provider and also set the VPN settings for the user ? I think I know the answer on iOs, and it is yes, I have seen it in many apps, but what about…
Alfonso Tesauro
  • 1,730
  • 13
  • 21
1 2 3 4 5
6