Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I programatically create and dial a VPN connection on iOS?

I've recently noticed that some iOS applications, such as the Astrill VPN Client, are able to create and dial VPN connections. In this specific case they seem to be Cisco IPSEC connections. I have not been able to locate any official Apple documentation on how to do this. Can anyone please tell me how this is possible?

Please note that I know how to configure VPN connections manually. The reason I want my application to do it is to provide an idiot proof and streamlined process for customers.

like image 647
Kebian Avatar asked Nov 02 '22 22:11

Kebian


1 Answers

These iOS apps achieve this by installing a VPN dialling profile that contains a VPN On Demand setting for a specific network and then simply try to connect to an address on that network, which prompts iOS to establish the VPN connection.

VPN On Demand can only be enabled for the IPSec (Cisco) connection type. You can create a dialling profile to do this using the iPhone Configuration Utility to see how it works.

like image 107
Kebian Avatar answered Nov 15 '22 11:11

Kebian