Strongswan与Andriod野蛮模式L2TPoverIPsec对接有时候不成功。

不成功的时候strongswan打印如下:
Dec 17 13:55:12 05[ENC] <net-net|8> generating AGGRESSIVE response 0 [ SA KE No ID V V V NAT-D NAT-D HASH ]
Dec 17 13:55:12 05[NET] <net-net|8> sending packet: from 192.168.0.132[500] to 192.168.0.124[500] (384 bytes)
Dec 17 13:55:12 04[NET] sending packet: from 192.168.0.132[500] to 192.168.0.124[500]
Dec 17 13:55:12 05[MGR] <net-net|8> checkin IKE_SA net-net[8]
Dec 17 13:55:12 05[MGR] <net-net|8> check-in of IKE_SA successful.
Dec 17 13:55:12 01[JOB] next event in 3s 999ms, waiting
Dec 17 13:55:13 03[NET] received packet: from 192.168.0.124[500] to 192.168.0.132[500]
Dec 17 13:55:13 03[NET] waiting for data on sockets
Dec 17 13:55:13 03[NET] received packet: from 192.168.0.124[500] to 192.168.0.132[500]
Dec 17 13:55:13 03[NET] waiting for data on sockets
Dec 17 13:55:13 06[MGR] checkout IKE_SA by message
Dec 17 13:55:13 06[MGR] IKE_SA net-net[8] successfully checked out
Dec 17 13:55:13 06[NET] <net-net|8> received packet: from 192.168.0.124[500] to 192.168.0.132[500] (92 bytes)
Dec 17 13:55:13 06[ENC] <net-net|8> parsed INFORMATIONAL_V1 request 2630201173 [ HASH N(INITIAL_CONTACT) ]
Dec 17 13:55:13 06[IKE] <net-net|8> calculated HASH does not match HASH payload
Dec 17 13:55:13 06[CFG] <net-net|8> no alternative config found
Dec 17 13:55:13 06[IKE] <net-net|8> queueing ISAKMP_DELETE task
Dec 17 13:55:13 06[IKE] <net-net|8> activating new tasks
Dec 17 13:55:13 06[IKE] <net-net|8>   activating ISAKMP_DELETE task
Dec 17 13:55:13 06[IKE] <net-net|8> deleting IKE_SA net-net[8] between 192.168.0.132[192.168.0.132]...192.168.0.124[123]
Dec 17 13:55:13 06[IKE] <net-net|8> sending DELETE for IKE_SA net-net[8]
Dec 17 13:55:13 06[IKE] <net-net|8> IKE_SA net-net[8] state change: CONNECTING => DELETING
Dec 17 13:55:13 06[ENC] <net-net|8> generating INFORMATIONAL_V1 request 3988102021 [ HASH D ]
Dec 17 13:55:13 06[NET] <net-net|8> sending packet: from 192.168.0.132[500] to 192.168.0.124[500] (84 bytes)
Dec 17 13:55:13 06[MGR] <net-net|8> checkin and destroy IKE_SA net-net[8]
Dec 17 13:55:13 06[IKE] <net-net|8> IKE_SA net-net[8] state change: DELETING => DESTROYING
Dec 17 13:55:13 06[MGR] check-in and destroy of IKE_SA successful

可以看出,原本应该期待收到AGG的第三条报文,但是却收到了个通知载荷 N(INITIAL_CONTACT) ]。通过抓包发现Andriod(racoon)确实也发了,
在strongswan的接收机器上通过tcpdump抓包如下顺序。
agg1/agg2/agg3/info

但是strongswan却先收到了information报文,导致处理错误。。。。谨记一下。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值