Establish a VPN connection on iOS programmatically or openVPN source code

I tried to find openVPN source code for iOS, but found only for Android. OpenVPN creates an app for the AppStore in collaboration with Apple or something like that, so they don’t (or cannot) distribute the source code.

So, I continued searching on this topic and found the documentation on the configuration profile key ( link ) and found this article ( link ). But this article says:

  • You need to use a supported VPN client, which can be either a built-in Cisco IPSec client or a supported SSL VPN client.

Do I need to use any installation client (for example, openVPN connect from the AppStore)?

Can I configure a VPN programmatically from my application? And how (if possible)?

Thanks for any help you can provide in this situation.

+4
source share
1 answer

Yes, you can configure VPN programmatically from your iOS app. IOS 8 has added a new infrastructure called network expansion infrastructure, which provides some APIs for developers to configure VPNs programmatically. Please see below blog http://ramezanpour.net/post/2014/08/03/configure-and-manage-vpn-connections-programmatically-in-ios-8/

+5
source

Source: https://habr.com/ru/post/1535393/


All Articles