iOS ipsec 禁用攻击模式 PSK

标签 ios vpn ipsec

我正在使用具有预共享 secret 的网络扩展框架为 iOS 编写 ipsec 应用程序。它无法连接到 VPN 服务器,并出现错误:“与 VPN 服务器协商失败”。服务器端有错误日志为:

Aggressive Mode PSK disabled for security reasons.

但是代码只设置了认证方式和sharedSecretReference,没有设置aggressive模式。事实上,我读了Apple的文档,找不到可以设置或禁用此模式的地方。

我知道激进模式 PSK 是一个 secret 风险,不应使用。我的问题是,为什么 iOS 默认设置攻击性模式以及如何禁用它?

最佳答案

关于libreswan wiki page 这是 ios 中的错误

iOS UserInterface bug: If you ever fill in the "Group Name" and then clear it - the connection remains using Aggressive Mode. If you want to use Main Mode your only choice is to delete the VPN profile and start one from scratch where you never touch the "Group Name" input box.

关于iOS ipsec 禁用攻击模式 PSK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36585260/

相关文章:

sql-server - VBA 获取计算机 VPN 状态

ios - 在 Xamarin.ios 上获取 VPN 连接状态

linux - 权限被拒绝(公钥),在 Linux AWS 服务器上我可以修复它吗?

c++ - 编程 VPN,身份验证阶段 - RFC 不够清楚

objective-c - 无法在 iOS 上使用 NEVPNManager 创建 IPSEC 连接

iphone - 将更新的数据库复制到 ios sdk 中的设备中

ios - 如何在 xib 文件中打开 ViewController

ios - 非常规 UIViewController 使用的危险

ios - 在 IOS 上的 Cocos2d v3 中绘制四边形和立方贝塞尔曲线