In iOS settings, there are options to create a VPN configuration using IPSec, IKEv2, and L2TP. Using the NetworkExtension framework from Apple there's an option to create VPN using IPSec and IKEv2 protocols only. They do work but problem is that I need to create a connection via L2TP since that's only supported by the company's firewall.
There's a question iOS app with custom VPN connect from 2014 and it's answered with:
If you want to connect programmatically in ios 8 you can use only IPSec or IKEv2 protocols. L2TP and PPTP protocols are private for apple. It is not possible to use L2TP and PPTP APIs in your applications. Only Apple is currently using these APIs.
Is there any way to create a L2TP VPN connection from an iOS application (Swift)?
.mobileconfig
profile which usesL2TP
. – MckimApps offering VPN services must utilize the NEVPNManager API
– GistL2TP
anyway in the latest iOS even with a.mobileconfig
, although I haven't tried it. – MckimL2TP
using.mobileconfig
. But I think it's kind of workaround to use.mobileconfig
programmatically for vpn. – Gist.mobileconfig
to installL2TP
configuration, I tried it and succeeded but we can just install configuration not control it, means we can noton or off
this VPN through ur application – Ironsides