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
0 answers

MacCatalyst VPN Connection Ask Password Each Connection

When we try to connect with MacCatalyst, the system asks for a password every connection, but when working on a project created for only MacOS, it connects directly without asking for a password. The output of the “set” functions in the…
0
votes
1 answer

NEVPNManager or NEPacketTunnelProvider for VPN

I am try create VPN using NEVPNManager, I am use Certificate authentication and IKEv2 protocol. When vpn was installed on iPhone and I am try connect to server, I get this error: Code Block Connection 8: received failure…
Ice
  • 680
  • 1
  • 10
  • 23
0
votes
0 answers

How to connect a user using the OpenVPNAdapter

I am working on a personal project where I will be connecting the user to a VPN. I have followed two blog posts on doing this which are https://medium.com/better-programming/how-to-build-an-openvpn-client-on-ios-c8f927c11e80 &…
Mutaeb Alqahtani
  • 354
  • 4
  • 13
0
votes
1 answer

How to install VPN root certificate in iOS Profile & Device Management and Trust Store Programmatically

I am using NEVPNManager & IKEV2 certificate as my authentication method for connecting to the VPN. I am able to connect to the VPN. Below mentioned is my sample block of code. guard let path = Bundle.main.path(forResource:…
Prashant
  • 244
  • 2
  • 16
0
votes
1 answer

NEVPNManager - How to track data usage of VPN in swift

I am working on a VPN app in swift 5. We are using NEVPNManager to handle all VPN configs. One of the features we would like is to measure the user's usage data while they are connected to our VPN. How can we do this ?
vinny
  • 529
  • 4
  • 7
  • 16
0
votes
0 answers

IPSec VPN using NEVPNManager does not disconnect on sleep

I'm working on an IPSec VPN solution for macOS. I've managed to get a VPN configuration installed via NEVPNManager and everything works. Except, my requirment is to disconnect the VPN when mac goes to sleep. Below is the IPSec profile which I am…
munibsiddiqui
  • 435
  • 5
  • 15
0
votes
2 answers

VPN is not working after iphone returns from sleep mode

I have problem with VPN on ios. I use this code. let result = NEOnDemandRuleConnect() result.interfaceTypeMatch = .any manager.onDemandRules = [result] manager.isOnDemandEnabled = true Sometimes, if I unlock iphone after 1-2 hours of sleep, VPN is…
Zakharov Roman
  • 739
  • 3
  • 13
  • 31
0
votes
1 answer

Why personal vpn configuration not working?

I'm developing a VPN application, which installs personal VPN profile into system configuration. If my application is only one VPN application on device - all works as expected. If I install one more VPN app with another personal VPN certificate, I…
Zakharov Roman
  • 739
  • 3
  • 13
  • 31
0
votes
0 answers

NEVPNManager with L2TP Protocol

I'm working with VPN and I ask this question but now I would like to create a VPN profile using L2TP Protocol, not the IPSec protocol. I have all the information I need (user, server, password, pre sharedKey) and the service is correctly ON. I'm…
Denis Bulgarini
  • 143
  • 3
  • 11
0
votes
1 answer

How to turn off my Packet Tunnel Extension with termination of host app

Right now I have implemented a simple Packet Tunnel extension using Network Extension APIs for iOS 11+. I want to make it App only VPN so that traffic from My app can be tunneled through our VPN and proxy. So, my questions are How to stop Tunneling…
Mrug
  • 4,963
  • 2
  • 31
  • 53
0
votes
1 answer

Redirecting Data flow to either wifi or Cellular in ios

I want ot redirect my iPhone data to either wifi or Cellular. Based on some criteria. Is it possible to redirect whole of the iPhone data to a particular interface like to either wifi or cellular. ? I heard that this can be done using VPN but no…
Dinesh
  • 929
  • 7
  • 25
0
votes
1 answer

Check VPN connection in Objective-C

I wanted to check VPN connection is there or not. I found code in Swift but I can not use NEVPNStatus in Objective-C: func checkNEStatus( status:NEVPNStatus ) { switch status { case NEVPNStatus.Invalid: print("NEVPNConnection:…
ios developer
  • 3,363
  • 3
  • 51
  • 111
0
votes
1 answer

NEVPNManager VPN Config SharedSecret Error

I want to establish a VPN connection with my VPN server. I installed VPN server from digital oceans. I want to make VPN application for IOS by using objective-C by using my VPN connection settings. Here I faced problem: no VPN shared secret was…
user3236289
0
votes
1 answer

Connecting to VPN programmatically keeps asking for system keychain credentials

My code connects to VPN using NEVPNManager and certificate (on MacOS), the code works good but whenever I try to connect (targetManager.connection.startVPNTunnel()) the system prompt for system keychain credentials. Is there to make this alert go…
Avi L
  • 1,558
  • 2
  • 15
  • 33
0
votes
1 answer

Using NEVPNManager how do I set SharedSecretReference

So I am trying to use NEVPNManager to set up my VPN programtically. I'm stuck on the config and really confused as to what goes where. The sharedSecretReference really trips me up. I've seen things elsewhere that said I need to be using the…
Bk Razor
  • 1,492
  • 1
  • 14
  • 24