hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
24.9k stars 6.28k forks source link

关于buildroot 下 4g 链接问题 #1535

Closed dd-ping closed 6 months ago

dd-ping commented 6 months ago

任务列表

问题描述 使用清楚简明的语言描述这个 bug。

我使用的是 使用命令行配置 Linux VPN 客户端 的拨号方式 https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/clients-zh.md#%E4%BD%BF%E7%94%A8%E5%91%BD%E4%BB%A4%E8%A1%8C%E9%85%8D%E7%BD%AE-linux-vpn-%E5%AE%A2%E6%88%B7%E7%AB%AF

destroying IKE SA in state CONNECTING wi thout notif ication IKE SA [1] closed successfully interface ppp0 Stopping strongSwan IPsec. Starting strongSwan 5. 6.3 IPsec Lstarterj... modprobe: can t open modules. dep' : No such file or directory modprobe: can t open' modules. dep' : No such file or directory modprobe: can t open' modules. dep' : No such file or directory modprobe: can t open modules. dep No such file or directory modprobe: can’t open’ modules. dep' : No such file or directory initiating Main Mode IKE SA myvpn[1] to x. x. x. x generating ID PROT request 0 [ SA VVV V V sending packet: from 172. 17. 253. 35[500] to x. x. x. x[500] (216 bytes) received packet: from x. x. x. x[500] to 172. 17. 253. 35[500] (144 bytes) parsed ID_ PROT response 0 [ SAVV V ] received FRAGMENTATION vendor ID received DPD vendor II received NAT-T (RFC 3947) vendor ID generating ID PROT request 0 [ KE No NAT-D NAT-D ] sending packet: from 172. 17. 253. 35[500] to x. x. x. x[500] (372 bytes) received packet: from x. x. x. x[500] to 172. 17. 253.35[500] (372 bytes) parsed ID PROT response 0 [ KE No NAT-D NAT-D ] local host is behind NAT, sending keep alives remote host is behind NAT generating ID PROT request 0 [ ID HASH N (INITIAL CONTACT) ] sending packet: from 172. 17.253. 35[4500] to x. x. x.x[4500] (108 bytes) sending retransmit 1 of request message ID 0,seq 3 sending packet: from 172. 17.253. 35[4500] to x. x.x. x[4500] (108 bytes)

重现步骤 重现该 bug 的步骤:

当意外断开链接之后再次进行链接的时候 无法再次链接上,即使是重启服务器 的 ipsec 跟 xl2tpd 也无法连接

期待的正确结果 简要地描述你期望的正确结果。

日志 检查日志及 VPN 状态,并添加错误日志以帮助解释该问题(如果适用)。

服务器信息(请填写以下信息)

客户端信息(请填写以下信息)

其它信息 添加关于该 bug 的其它信息。

hwdsl2 commented 6 months ago

@dd-ping 你好!请尝试重启客户端上的 strongswan 和 xl2tpd 服务,参见文档中的 "当你每次尝试连接到 VPN 时,必须重复下面的所有步骤" 部分。

另外,你也可以使用 IKEv2 模式从命令行连接。请参见这里

如果无法解决,你可以到 Libreswan 项目提交一个 Issue。

dd-ping commented 6 months ago

感谢,当我整个设备重启时就可以链接了,有可能是某个服务的问题