我有一个VPN集中器VM,它运行Linux2.6.18 (RHEL version2.6.18-274.12.1.el5)和ipsec-tools 0.7.3。
我有一堆连接到各种集中器的连接,但有一个连接一直在我身上消亡。遥控器是Cisco ASA。
阶段1和阶段2正确出现,似乎一切正常,但遥控器突然停止响应。我可以看到ipsec数据包传出,但没有响应。在此之前,DPD似乎工作得很好(我看到每10秒就会发送一次数据包)。这种情况也不会一直发生,有时会持续很长时间。
在遥控器上,隧道在这一点上不再活动,但racoon仍然认为它有阶段1+阶段2正在进行。有没有一些消息是ASA发送给racoon忽略的?
我也不明白的是,DPD逻辑并没有扼杀这种联系。
这是我的racoon.conf:
remote x.x.x.x {
exchange_mode main;
lifetime time 8 hours;
dpd_delay 10;
proposal {
authentication_method pre_shared_key;
encryption_algorithm aes 256;
hash_algorithm sha1;
dh_group 2;
}
proposal_check obey;
}
sainfo subnet y.y.y.y/32[0] any subnet z.z.z.0/26 any {
pfs_group 2;
lifetime time 1 hour;
encryption_algorithm aes 256;
authentication_algorithm hmac_sha1;
compression_algorithm deflate;
}发布于 2015-03-23 06:31:33
问这个问题已经有一段时间了,但您可以尝试更新版本的ipsec-tools。在较新的版本中有许多协议互操作修复。此外,请仔细检查您的参数是否与ASA匹配,特别是在各种生命周期设置方面。我在racoon的“远程”部分使用"rekey force“也取得了很好的成功。下面是我用来与ASA互操作的相关配置部分:
remote w.x.y.z
{
exchange_mode main;
lifetime time 28800 seconds;
proposal_check obey;
rekey force;
proposal {
encryption_algorithm aes 256;
hash_algorithm sha1;
authentication_method pre_shared_key;
dh_group 2;
}
}
sainfo subnet a.b.c.d/n any subnet e.f.g.h/n any
{
lifetime time 1 hour ;
encryption_algorithm aes 256;
authentication_algorithm hmac_sha1;
compression_algorithm deflate ;
}https://stackoverflow.com/questions/19587019
复制相似问题