Hi all
As I was searching arount it these days I realized I must use NETunnelProviderManager() rather than NEVPNProtocolIKEv2() and use a networkExtension target project and linked it to the providerManager, And also I realized I can configure my VPN with an object was made from NETunnelProviderProtocol() .
So here is my question:
every VPNs has a bunch of configuration (server address, remote identifier and etc.) an my vpn such other has them, so how can I configure them for an enterprise VPN configuration??
for more detail, here is an example of IKEv2 configuration:
As I was searching arount it these days I realized I must use NETunnelProviderManager() rather than NEVPNProtocolIKEv2() and use a networkExtension target project and linked it to the providerManager, And also I realized I can configure my VPN with an object was made from NETunnelProviderProtocol() .
So here is my question:
every VPNs has a bunch of configuration (server address, remote identifier and etc.) an my vpn such other has them, so how can I configure them for an enterprise VPN configuration??
for more detail, here is an example of IKEv2 configuration:
Code Block swift let p = NEVPNProtocolIKEv2() if config.pskEnabled { p.authenticationMethod = NEVPNIKEAuthenticationMethod.sharedSecret } else { p.authenticationMethod = NEVPNIKEAuthenticationMethod.none } p.serverAddress = config.server p.disconnectOnSleep = true p.deadPeerDetectionRate = NEVPNIKEv2DeadPeerDetectionRate.medium p.username = config.account p.passwordReference = config.getPasswordRef() p.sharedSecretReference = config.getPSKRef() p.disableMOBIKE = * p.disableRedirect = * p.enableRevocationCheck = * p.enablePFS = * p.useExtendedAuthentication = *** p.useConfigurationAttributeInternalIPSubnet = false p.remoteIdentifier = config.remoteId p.serverAddress = config.server p.localIdentifier = config.account