Custom OpenVPN iOS client [closed]

扶醉桌前 提交于 2019-12-05 15:37:22

I think you should use the Network Extension framework to extend VPN capabilities of an iOS device. The documentation can be found at the link:

https://developer.apple.com/library/ios/documentation/NetworkExtension/Reference/Network_Extension_Framework_Reference/

As stated at the beginning of the linked document in order for your app to be able to use the above framework you need a special permission from Apple:

IMPORTANT

Most Network Extension classes require you to obtain an entitlement from Apple before using them in your code. To request entitlements, visit https://developer.apple.com/contact/network-extension.

It may or may not be possible to test the framework without such permission in your development devices, however it is unlikely that you can publish the resulting application to the market.

You could use NEPacketTunnelProvider api in Network Extension Framework. The packet tunnel provider allow you to create your own vpn tunnel in iOS and the network traffic (raw ip packet) would be routed to your own vpn tunnel. But you may need to handle raw ip packet and integrate with openvpn3.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!