IOS cannot set VPN programmatically

纵饮孤独 提交于 2019-11-29 08:39:53
  1. As far as I know, in iOS you can only set programmatically VPN connection with only IPSec and IKEv2 protocols
  2. For me it was very helpful to find this great example of such application https://github.com/lexrus/VPNOn where you can find the examples of both available types of connections to VPN. I think critical point in creating of VPN connection is to provide valid keychain references to your credentials:

p.passwordReference = [VPN user password from keychain];

p.sharedSecretReference = [VPN server shared secret from keychain];

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