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
1
vote
1 answer

What is the difference between NEVPNManager and NETunnelProvider?

I'm trying to find out what's the difference between the two. I get the NETunnel is for ssl-vpn's and custom vpn's, but can they still be used interchangeably? Can I use NETunnel to connect to an IPSec VPN? My main need is to set my dns for the…
Ahad Cove
  • 323
  • 3
  • 12
1
vote
1 answer

Does NEVPNManager support L2TP now?

I've seen older post about Apple not supporting L2TP through NEVPNManager. I was really hoping by now something has changed, but I'm not finding much on the matter. Is there a way yet to use NEVPNManager with L2TP?
Bk Razor
  • 1,492
  • 1
  • 14
  • 24
1
vote
1 answer

How can I add a proxy configuration to a VPN?

Here is some sample code I am using to add a VPN configuration through my app. My question is, how can I also add in a proxy configuration. In the settings app and in Apple Configurator, users can add proxy settings (automatic or manual) along with…
Matt
  • 1,087
  • 1
  • 12
  • 28
1
vote
1 answer

Error when connecting to vpn using NEVPNManager in iOS

I am trying to configure vpn programatically using NEVPNManager and i was successful upto saving the preferences , but i am getting error "negotiation with the VPN server failed" when i try to connect. Is there anything to do specific in…
good4pc
  • 711
  • 4
  • 17
1
vote
0 answers

ios ipsec vpn whitlist

I was reading about the VPN On Demand feature built on the latest versions of iOS. The problem here is:I run vpn in my app, other app can use the vpn traffic. Now,I hope that only some domain names can use vpn, such as only google.com,other…
yan
  • 11
  • 3
1
vote
1 answer

Is it possible to distribute an OSX app ad-hoc without UUID but with entitlements

I'm having some serious trouble signing an application for ad-hoc distribution. Is it possible to distribute an app with the following requirements?: Does not require tester to provide UUID up front Outside app store Utilizes entitlements such as…
DCToDaylight
  • 1,057
  • 10
  • 15
1
vote
1 answer

iOS VPN ondemand shut off from settings app

Turning off the VPN from the settings app doesn't turn off the ondemand feature. Trying to access the NETunnelProviderManager and setting ondemand to false results in the log message NEVPNManager objects cannot be instantiated from NEProvider…
mKane
  • 932
  • 13
  • 30
1
vote
0 answers

Using iOS Network Extension Framework API to find out the status and name of the VPN on the iOS device

I've gone through some posts already on Stack Overflow, but I did not find a proper answer any where. Here are my questions: 1) Our app uses Cisco AnyConnect app for VPN on the iOS devices. Will I be able to use the network extension framework API…
iOSNinja
  • 21
  • 4
1
vote
1 answer

NeVpnManager No VPN shared secret was provided

Hi I'am trying to create IPSEC VPN connection and connect automatically but it's giving No VPN shared secret was provided error even if I defined shared secret. My code likes below and it's saving VPN configuration but doesn't connect. I'am trying…
Emre
  • 79
  • 11
1
vote
1 answer

NEVPNManager's onDemandEnabled flag

When NEVPNProtocol property is updated by the server such that the username & password isn't valid anymore, is there a way we can handle this? Lets say if we turn on onDemandEnabled flag for NEVPNManager, and when the server invalidates the…
Siddharthan Asokan
  • 4,321
  • 11
  • 44
  • 80
1
vote
1 answer

NEVPNManager on-demand callbacks

I have a question about loadPreferencesWithCompletitionHandler And savePreferencesWithCompletitionHandler of NEVPNManager. Does blocks of this functions invoked when, for example, on-demand connection establishing ? If yes, then does it triggers…
Dimson
  • 99
  • 11
0
votes
0 answers

Intercepting DNS query in PacketTunnelProvider for blocking domains

I have developed a VPN application with PacketTunnelProvider that connects to the OpenVPN server. It works perfectly fine. Now I have the following requirements. The user should be able to block a particular domain, such as www.facebook.com while…
munibsiddiqui
  • 435
  • 5
  • 15
0
votes
0 answers

How can I make some apps not use VPN proxy?

I use NEVPNManager to creat Personal VPN (IKEV2 & IPSec). It works well. But when I use NEProxySettings add white list or proxyAutoConfigurationJavaScript code, it doesn't work. What I want to do is specify that part of the APP doesn't use the VPN…
Young
  • 1
  • 1
0
votes
1 answer

Not able to establish VPN connection using SharedSecret

I'm trying to connect to a vpn using Swift. I have created class VpnHandler and I'm using Keychain Swift to keep keychain reference. My code look like this: import Foundation import NetworkExtension import KeychainSwift …
0
votes
1 answer

Vpn connect between iOS NEVPNManager and StrongSwan on Ubuntu 16.04

I am trying to create vpn connection in my app. On the sever side use IKEv2 VPN Server with StrongSwan on Ubuntu 16.04. Build by this guid…
Dmitry K
  • 16
  • 2