Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set VPN connection on iOS programmatically or openVPN source code

I tried to find openVPN source code for iOS, but found only for Android. OpenVPN create app for AppStore in collaboration with Apple or something, so they don't want (or can't) to distribute source codes.

So, I continued searching on this theme and found documentation about Configuration Profile Key (link) and found this article (link). But this article says:

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

Is this necessary to use some installing client (like openVPN connect from AppStore)?

Can I configure VPN programmatically from my app? And how (if it possible)?

Thank you for any help you can provide in this situation

like image 484
Niko Avatar asked Apr 07 '14 15:04

Niko


People also ask

Can iOS connect to OpenVPN?

To obtain the OpenVPN Connect app, go to the Apple App Store on your Apple iOS device. Look for the words "openvpn connect" and the application will show up in the search results. You can install it from there. Once installed an icon will be placed on your home screen where you can find the app.


1 Answers

Yes you can configure VPN programmatically from your IOS app. IOS 8 has added a new framework called network extension framework which provides some API's for developers to configure VPN programatically. Please refer the this blog

like image 85
Ashok Avatar answered Nov 14 '22 22:11

Ashok