默认出口是拨号,专线对接IPSEC第一阶段不起来。如果不用拨号当默认出口,IPsec就可以起来
<H3C>*Aug 27 19:08:48:519 2024 H3C IPSEC/7/EVENT:
Found block-flow node.
*Aug 27 19:08:48:519 2024 H3C IPSEC/7/PACKET:
Failed to find SA by SP, SP Index = 1, SP Convert-Seq = 131072.
*Aug 27 19:08:48:519 2024 H3C IPSEC/7/ERROR:
The reason of dropping packet is no available IPsec tunnel.
*Aug 27 19:08:49:333 2024 H3C IPSEC/7/EVENT:
Found block-flow node.
*Aug 27 19:08:49:333 2024 H3C IPSEC/7/PACKET:
Failed to find SA by SP, SP Index = 1, SP Convert-Seq = 131072.
*Aug 27 19:08:49:333 2024 H3C IPSEC/7/ERROR:
The reason of dropping packet is no available IPsec tunnel.
*Aug 27 19:08:49:585 2024 H3C IPSEC/7/EVENT:
Found block-flow node.
*Aug 27 19:08:49:585 2024 H3C IPSEC/7/PACKET:
Failed to find SA by SP, SP Index = 1, SP Convert-Seq = 131072.
*Aug 27 19:08:49:585 2024 H3C IPSEC/7/ERROR:
The reason of dropping packet is no available IPsec tunnel.
*Aug 27 19:08:54:523 2024 H3C IPSEC/7/EVENT:
Found block-flow node.
*Aug 27 19:08:54:523 2024 H3C IPSEC/7/PACKET:
Failed to find SA by SP, SP Index = 1, SP Convert-Seq = 131072.
*Aug 27 19:08:54:523 2024 H3C IPSEC/7/ERROR:
The reason of dropping packet is no available IPsec tunnel.
*Aug 27 19:08:55:337 2024 H3C IPSEC/7/EVENT:
Found block-flow node.
*Aug 27 19:08:55:337 2024 H3C IPSEC/7/PACKET:
Failed to find SA by SP, SP Index = 1, SP Convert-Seq = 131072.
*Aug 27 19:08:55:337 2024 H3C IPSEC/7/ERROR:
The reason of dropping packet is no available IPsec tunnel.
*Aug 27 19:08:55:586 2024 H3C IPSEC/7/EVENT:
Found block-flow node.
*Aug 27 19:08:55:586 2024 H3C IPSEC/7/PACKET:
Failed to find SA by SP, SP Index = 1, SP Convert-Seq = 131072.
*Aug 27 19:08:55:586 2024 H3C IPSEC/7/ERROR:
The reason of dropping packet is no available IPsec tunnel.
*Aug 27 19:09:07:736 2024 H3C IPSEC/7/EVENT:
Found block-flow node.
*Aug 27 19:09:07:736 2024 H3C IPSEC/7/PACKET:
Failed to find SA by SP, SP Index = 1, SP Convert-Seq = 131072.
*Aug 27 19:09:07:736 2024 H3C IPSEC/7/ERROR:
The reason of dropping packet is no available IPsec tunnel.
%Aug 27 19:09:09:353 2024 H3C SYSLOG/5/LOGFILE_USAGEHIGH: The usage of log-file flash:/logfile/cfglog.log reaches 80%.
*Aug 27 19:09:10:731 2024 H3C IPSEC/7/EVENT:
Found block-flow node.
*Aug 27 19:09:10:731 2024 H3C IPSEC/7/PACKET:
Failed to find SA by SP, SP Index = 1, SP Convert-Seq = 131072.
*Aug 27 19:09:10:731 2024 H3C IPSEC/7/ERROR:
The reason of dropping packet is no available IPsec tunnel.
*Aug 27 19:09:16:732 2024 H3C IPSEC/7/EVENT:
Found block-flow node.
*Aug 27 19:09:16:732 2024 H3C IPSEC/7/PACKET:
Failed to find SA by SP, SP Index = 1, SP Convert-Seq = 131072.
*Aug 27 19:09:16:732 2024 H3C IPSEC/7/ERROR:
The reason of dropping packet is no available IPsec tunnel.
%Aug 27 19:09:31:687 2024 H3C IKE/6/IKE_P1_SA_ESTABLISH_FAIL: Failed to establish phase 1 SA in Main mode IKE_P1_STATE_SEND2 state.
Reason: Retransmission timeout.
SA information:
Role: responder
Local IP: 119.145.197.195
Local ID type: Unknown
Local ID:
Local port: 500
Retransmissions: 5
Remote IP: 120.237.131.66
Remote ID type: Unknown
Remote ID:
Remote port: 500
Recived retransmissions: 0
Inside VPN instance:
Outside VPN instance:
Initiator COOKIE: 76d86f5839fbadc4
Responder COOKIE: c3c6cb0b7ab7ced3
Connection ID: 12952
Tunnel ID: 4294967295
IKE profile name:
*Aug 27 19:09:31:690 2024 H3C IPSEC/7/EVENT:
Sent delete SA message to all nodes, message type is 0x16.
*Aug 27 19:09:31:690 2024 H3C IPSEC/7/EVENT:
The SA doesn't exist in kernel.
%Aug 27 19:09:36:177 2024 H3C SYSLOG/5/LOGFILE_USAGEHIGH: The usage of log-file flash:/logfile/cfglog.log reaches 80%.
%Aug 27 19:09:44:687 2024 H3C IKE/6/IKE_P1_SA_ESTABLISH_FAIL: Failed to establish phase 1 SA in Main mode IKE_P1_STATE_SEND2 state.
Reason: Retransmission timeout.
(0)
最佳答案
估计是一阶段的流量串到拨号线路上去然后被对端设备做了nat或者其它操作。
加几条静态路由吧,你的策略路由只对流入11接口的流量有效,对设备自身发出的流量(比如一阶段的协商流量)无效。
添加如下路由试试:
ip route-static 61.144.201.178 32 GigabitEthernet1/0/0 119.145.197.193 preference 55
ip route-static 120.237.131.66 32 GigabitEthernet1/0/0 119.145.197.193 preference 55
ip route-static 101.230.4.30 32 GigabitEthernet1/0/0 119.145.197.193 preference 55
(0)
这个方法解决了
第一阶段起不来且有报文丢弃的话,检查下组网细节、设备型号、以及配置在仔细分析定位吧
目前信息无法定位的,大概率还是配置问题
(0)
两端都没有固定公网地址嘛
可以参考下如下配置
两台防火墙一端固定IP,一端PPPOE拨号搭建IPSEC VPN配置案例(野蛮模式命令行)
1 目录
4.9 总部侧外网接口调用IPSEC策略和NAT动态转换策略... 4
4.11 分部侧创建IPSEC兴趣流匹配到总部的数据... 4
4.17 分部侧外网接口调用IPSEC策略和NAT动态转换策略... 5
本案例适用于软件平台为Comware V7系列防火墙:F100-X-G2、F1000-X-G2、F100-X-WiNet、F1000-AK、F10X0等。
注:本案例分支是F100-C-G2的Version 7.1.064, Release 9510P08版本,总部是F1000-C-G2的Version 7.1.064, Release 9323P1801上进行配置和验证的。
总部和分部各有一台防火墙部署在互联网出口,因业务需要两端内网需要通过VPN相互访问。IP地址及接口规划如下表所示:
公司名称 |
外网接口 |
公网地址/掩码 |
公网网关 |
内网接口 |
内网地址/掩码 |
总部 |
1/0/3 |
101.88.26.34/30 |
101.88.26.33 |
1/0/4 |
192.168.10.0/24 |
分部 |
1/0/3 |
PPPOE拨号 |
自动获取网关 |
1/0/4 |
192.168.20.0/24 |
防火墙上网配置请参考“2.3.2 防火墙外网使用固定IP地址上网配置方法”及“2.3.1 防火墙外网使用拨号上网配置方法”进行配置,本文只针对IPSEC VPN配置进行介绍。
4.2 总部侧排除IPSEC兴趣流不做NAT
[H3C]acl advanced 3888 //创建acl 3888
[H3C-acl-ipv4-adv-3888]rule deny ip source 192.168.10.0 0.0.0.255 destination 192.168.20.0 0.0.0.255 //创建规则源、目地址分别匹配本端、对端内网地址,动作拒绝
[H3C-acl-ipv4-adv-3888]rule permit ip source any //创建规则允许所有
[H3C-acl-ipv4-adv-3888]quit //退出当前视图
4.3 总部侧创建IPSEC安全提议
#加密类型设置为aes-cbc-128,认证类型设置为sha1。
[H3C]ipsec transform-set 1 //创建ipsec transform-set 1
[H3C-ipsec-transform-set-1]esp encryption-algorithm aes-cbc-128 //加密类型设置为aes-cbc-128
[H3C-ipsec-transform-set-1]esp authentication-algorithm sha1 //认证类型设置为sha1
[H3C-ipsec-transform-set-1]quit //退出当前视图
4.4 总部侧创建IKE安全提议
#IKE安全提议默认的认证类型为sha1,加密类型为DES-CBC,DH组为DH1,所以不需要配置也存在这些参数。
[H3C]ike proposal 1 //创建ike proposal 1
[H3C-ike-proposal-1]quit //退出当前视图
4.5 总部侧创建IKE安全密钥
#创建IKE密钥,地址填写0.0.0.0/0,密码设置为123456。
[H3C-ike-keychain-1]pre-shared-key address 0.0.0.0 key simple 123456 //地址填写全0匹配所有,密码设置为123456
[H3C-ike-keychain-1]quit //退出当前视图
4.6 总部侧创建IKE安全框架
#创建IKE安全框架,协商模式调整为野蛮模式。本端身份识别为center,分部身份识别为branch。
[H3C]ike profile 1 //创建IKE安全框架
[H3C-ike-profile-1]keychain 1 //调用keychain 1
[H3C-ike-profile-1] exchange-mode aggressive //设置为野蛮模式
[H3C-ike-profile-1] local-identity fqdn center //配置本端身份识别为center
[H3C-ike-profile-1]match remote identity address 0.0.0.0 0.0.0.0 //匹配所有地址
[H3C-ike-profile-1]match remote identity fqdn branch //配置分部身份识别为branch
[H3C-ike-profile-1]proposal 1 //调用proposal 1
[H3C-ike-profile-1]quit //退出当前视图
4.7 总部侧创建IPSEC安全策略模板
[H3C]ipsec policy-template GE1/0/3 1 //创建ipsec安全策略模板序号1
[H3C-ipsec-policy- template-GE1/0/3-1]transform-set 1 //调用transform-set 1
[H3C-ipsec-policy- template-GE1/0/3-1]local-address 101.88.26.34 //配置本地外网口地址
[H3C-ipsec-policy- template-GE1/0/3-1]ike-profile 1 //调用ike-profile 1
[H3C-ipsec-policy- template-GE1/0/3-1]quit //退出当前视图
4.8 总部侧创建IPSEC安全策略
#创建IKE安全策略GE1/0/3将安全策略模板和安全策略绑定。
[H3C]ipsec policy GE1/0/3 1 isakmp template GE1/0/3
4.9 总部侧外网接口调用IPSEC策略和NAT动态转换策略
[H3C]interface GigabitEthernet 1/0/3 //进入外网口
[H3C-GigabitEthernet1/0/3]ipsec apply policy GE1/0/3 //调用ipsec
[H3C-GigabitEthernet1/0/3]nat outbound 3888 //出方向nat调用acl 3888
[H3C-GigabitEthernet1/0/3]quit //退出当前视图
[H3C]save force
4.11 分部侧创建IPSEC兴趣流匹配到总部的数据
#创建IPSEC的感兴趣流,用于匹配IPSEC数据。
<H3C>system-view //进入系统视图
[H3C]acl advanced 3999 //创建acl 3999
[H3C-acl-ipv4-adv-3999]rule permit ip source 192.168.20.0 0.0.0.255 destination 192.168.10.0 0.0.0.255 //创建规则源、目地址分别匹配本端、对端内网地址
[H3C-acl-ipv4-adv-3999]quit //退出
#创建acl 3888调用在外网接口用于排除IPSEC兴趣流不做NAT。
[H3C]acl advanced 3888 //创建acl 3888
[H3C-acl-ipv4-adv-3888]rule deny ip source 192.168.20.0 0.0.0.255 destination 192.168.10.0 0.0.0.255 //创建规则源、目地址分别匹配本端、对端内网地址,动作拒绝
[H3C-acl-ipv4-adv-3888]rule permit ip source any //创建规则允许所有
[H3C-acl-ipv4-adv-3888]quit //退出当前视图
4.12 分部侧创建IPSEC安全提议
#加密类型设置为aes-cbc-128,认证类型设置为sha1。
[H3C]ipsec transform-set 1 //创建ipsec transform-set 1
[H3C-ipsec-transform-set-1]esp encryption-algorithm aes-cbc-128 //加密类型设置为aes-cbc-128
[H3C-ipsec-transform-set-1]esp authentication-algorithm sha1 //认证类型设置为sha1
[H3C-ipsec-transform-set-1]quit //退出当前视图
4.13 分部侧创建IKE安全提议
#IKE安全提议默认的认证类型为sha1,加密类型为DES-CBC,DH组为DH1,所以不需要配置也存在这些参数。
[H3C]ike proposal 1 //创建ike proposal 1
[H3C-ike-proposal-1]quit //退出当前视图
4.14 分部侧创建IKE安全密钥
#创建IKE密钥,地址填写总部侧设备的公网IP,密码设置为123456。
[H3C]ike keychain 1 //创建IKE密钥
[H3C-ike-keychain-1] pre-shared-key address 101.88.26.34 255.255.255.255 key simple 123456 //地址填写总部侧设备的公网IP,密码设置为123456
[H3C-ike-keychain-1]quit //退出当前视图
4.15 分部侧创建IKE安全框架
#创建IKE安全框架,匹配keychain 1安全密匙,协商模式调整为野蛮模式。本端身份识别为branch,总部身份识别为center,并制定对端地址为总部侧公网地址。
[H3C]ike profile 1 //创建IKE安全框架
[H3C-ike-profile-1]keychain 1 //调用keychain 1
[H3C-ike-profile-1]exchange-mode aggressive //协商模式为野蛮模式
[H3C-ike-profile-1] local-identity fqdn branch //配置本端身份识别为branch
[H3C-ike-profile-1] match remote identity fqdn center //配置总部身份识别为center
[H3C-ike-profile-1] match remote identity address 101.88.26.34 255.255.255.255 //配置对端总部公网地址和掩码
[H3C-ike-profile-1]proposal 1 //调用proposal 1
[H3C-ike-profile-1]quit //退出当前视图
4.16 分部侧创建IPSEC安全策略
#创建IKE安全策略GE1/0/3将transform-set、acl、ike-profile、本端地址、对端地址关联起来。
[H3C]ipsec policy GE1/0/3 1 isakmp //创建ipsec安全策略GE1/0/3序号1
[H3C-ipsec-policy-isakmp-GE1/0/3-1] transform-set 1 //调用transform-set 1
[H3C-ipsec-policy-isakmp-GE1/0/3-1]security acl 3999 //调用acl 3999
[H3C-ipsec-policy-isakmp-GE1/0/3-1] remote-address 101.88.26.34 //配置对端外网口地址
[H3C-ipsec-policy-isakmp-GE1/0/3-1]ike-profile 1 //调用ike-profile 1
[H3C-ipsec-policy-isakmp-GE1/0/3-1]quit //退出当前视图
4.17 分部侧外网接口调用IPSEC策略和NAT动态转换策略
[H3C]interface dialer 1 //进入外网口(此案例为拨号口)
[H3C-Dialer1]ipsec apply policy GE1/0/3 //调用ipsec
[H3C-Dialer1]nat outbound 3888 //出方向nat调用acl 3888
[H3C-Dialer1]quit //退出
[H3C]save force
#分部通过命令行查看display ike sa可以看到隧道状态为RD状态表示ike建立完成。
分支通过display ipsec sa可以看到IPSEC SA基本状态。
#总部通过命令行查看display ike sa可以看到隧道状态为RD状态表示ike建立完成。
#分支通过display ipsec sa可以看到IPSEC SA基本状态。
(0)
您好,请知:
IPSEC VPN故障排查:
1、检查公网地址的连通性
2、检查ipsec acl是否配置正确(两端ACL以互为镜像的方式配置)
3、检查ike keychain/ike profile 协商参数配置是否正确(工作模式、keychain、identity、本端/对端隧道地址或隧道名称、NAT穿越功能v7自适应)
4、检查ipsec proposal(v5平台) /ipsec transform-set(v7平台)参数两端是否一致(封装模式、安全协议、验证算法、加密算法)
5、检查设备是否创建ipsec策略,并加载协商参数(acl、ike profile 、ipsec transform-set、对端隧道IP)
6、检查ipsec策略是否应用在正确的接口上
IPSEC排查命令:
1、disp ipsec policy
2、disp acl
3、dis cu conf ike-profile
4、dis cu conf ike-keychain
5、display ike proposal
6、display ipsec transform-set
7、disp ike sa (verbose)
8、disp ipsec sa
9、reset ipsec sa
10、reset ike sa
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
这个方法解决了