VPN 中的 L2TP 连接失败

VPN 中的 L2TP 连接失败

我遇到了 L2TP VPN 问题。我使用 Ubuntu 18.04,安装了 network-manager-l2tp、network-manager-l2tp-gnome,但无法连接公司的 L2TP VPN。以下是 syslog。

Jul  1 18:13:24 linyong-PC charon: 12[ENC] parsed INFORMATIONAL_V1 request 4104919682 [ N(NO_PROP) ]
Jul  1 18:13:24 linyong-PC charon: 12[IKE] received NO_PROPOSAL_CHOSEN error notify
Jul  1 18:13:24 linyong-PC NetworkManager[1077]: establishing connection 'dcbd7b48-3e65-4b14-92c7-f906f159cd70' failed
Jul  1 18:13:25 linyong-PC NetworkManager[1077]: Stopping strongSwan IPsec...
Jul  1 18:13:25 linyong-PC charon: 00[DMN] signal of type SIGINT received. Shutting down
Jul  1 18:13:25 linyong-PC nm-l2tp-service[23236]: g_dbus_method_invocation_take_error: assertion 'error != NULL' failed
Jul  1 18:13:25 linyong-PC NetworkManager[1077]: <info>  [1561976005.2076] vpn-connection[0x555810a8c810,dcbd7b48-3e65-4b14-92c7-f906f159cd70,"VPN 1",0]: VPN plugin: state changed: stopped (6)
Jul  1 18:13:25 linyong-PC NetworkManager[1077]: <info>  [1561976005.2122] vpn-connection[0x555810a8c810,dcbd7b48-3e65-4b14-92c7-f906f159cd70,"VPN 1",0]: VPN service disappeared
Jul  1 18:13:25 linyong-PC NetworkManager[1077]: <warn>  [1561976005.2133] vpn-connection[0x555810a8c810,dcbd7b48-3e65-4b14-92c7-f906f159cd70,"VPN 1",0]: VPN connection: failed to connect: 'Message recipient disconnected from message bus without replying'

我可以在 Windows 10 中连接 VPN,但我不知道我是否错过了一些配置。我该怎么办?

答案1

VPN 服务器不接受 strongSwan 默认提案,因此您需要在 NetworkManager-l2tp 的 IPsec 配置对话框中输入第 1 阶段和第 2 阶段算法提案。

请参阅软件包的 README 文件以了解 Windows 使用的第 1 阶段和第 2 阶段算法:

相关内容