• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
  • 漏洞说明
  • 全部
  • 是
  • 否
  • 全部
  • 是
  • 否
  • 大数据引擎
  • 知了引擎
产品线
搜索
取消
案例类型
发布者
是否解决
是否官方
时间
搜索引擎
匹配模式
高级搜索
问

华三F1000—AI—10防火墙如何解决路由不对称的问题

2天前提问
  • 0关注
  • 0收藏,78浏览
粉丝:0人 关注:1人

问题描述:

单位有一台华三F1000-AI-10防火墙,接入了2条线路,1条是联通专线到教育网,另外1条是移动线路,想的是有线用户走联通线路,无线用户都走移动线路,做了策略后发现,无线用户无法正常上网,分析后是路由不对称的问题,路由策略强制无线用户从移动口出去,但回包回到了联通线路,导致防火墙丢包,无法上网,也调了防火墙的宽松模式等等操作,一直没有解决问题,哪位有更好的主意吗?

4 个回答
粉丝:21人 关注:9人

针对F1000-AI-10防火墙路由不对称问题,核心解决思路是确保回程路由与正向流量路径一致,而非依赖防火墙的“宽松模式”(该模式仅放宽会话状态检查,不解决路由问题)。
排查与配置步骤:
1. 确认接口及路由配置
检查防火墙是否配置了策略路由(PBR)或源地址路由,强制无线用户从移动口(假设为G1/0/2)转发。同时检查联通口(G1/0/1)是否配置了默认路由或回程路由指向联通网关。
2. 关键配置:添加回程静态路由
在防火墙上为无线用户网段(如192.168.10.0/24)添加一条静态路由,下一跳指向移动线路网关(假设为100.64.0.1),确保回包从移动口返回:

ip route-static 192.168.10.0 24 100.64.0.1

若无线用户网段较多,可汇总或使用明细路由。
3. 启用会话保持与反向路径检查(RPF)
在接口下关闭严格RPF,或调整防火墙的会话关联参数,允许非对称流量通过(但需谨慎,可能引入安全风险):

interface GigabitEthernet1/0/2
ip urpf disable // 或 ip urpf loose

4. 验证与测试
使用display ip routing-table查看路由是否生效,display session table verbose观察会话建立情况。若仍丢包,检查运营商侧是否做了NAT或路由策略,需联系移动线路运营商确认回程路由是否指向防火墙。
替代方案:
若上述无效,建议将无线用户流量通过策略路由强制从移动口转发,同时在联通口上配置等价路由或策略路由,将无线用户网段的回包也引导至移动口。例如:
acl advanced 3000
rule 0 permit ip source 192.168.10.0 0.0.0.255
policy-based-route
apply ip-address next-hop 100.64.0.1
并在联通口入方向应用该PBR。
注意: 若移动线路为NAT出口,需确保防火墙对无线用户流量做源NAT,避免回包因源地址问题被丢弃。配置NAT时,指定出接口为移动口即可。

这个方法试了,不行

zhiliao_koRc6z 发表时间:2天前 更多>>

这个方法试了,不行

zhiliao_koRc6z 发表时间:2天前
粉丝:115人 关注:0人

排查清单(按顺序检查)

  1. 确认 NAT 转换结果 无线用户上网后,看 display nat session,确认转换后的公网地址是移动侧的地址,不是联通。如果无线被转换成联通公网 IP,回包自然跑到联通,必崩。
  2. 确认回包到达哪个 WAN 口 在移动 WAN、联通 WAN 抓包,看无线用户的回包是从哪个 WAN 进来。
    • 回包已经从移动 WAN 进来但还是不通:安全策略、会话、ALG 问题;
    • 回包跑到联通 WAN 进来:路由 / 运营商侧选路问题,这是你当前主因。
  3. 检查默认路由和路由优先级 两条出口默认路由、静态路由、OSPF / 静态学到的教育网路由,谁的优先级高,会不会干扰回程。教育网专线路由表往往比较特殊,很容易 “抢” 回程。
  4. 检查链路健康探测 如果用智能选路,确认两条链路状态正常,没有探测失败导致流量被漂移。
  5. 版本和已知 bug F1000‑AI 系列不同版本在 PBR、智能选路、NAT 联动上有差异,核对版本 Release Notes,必要时升级到推荐稳定版本。

转换NAT没有问题

zhiliao_koRc6z 发表时间:2天前 更多>>

转换NAT没有问题

zhiliao_koRc6z 发表时间:2天前
zhiliao_koRc6z 知了小白
粉丝:0人 关注:1人

以下是配置,允许非对称流量通过试过了,不行,看看该如何改

[fanghuoqiang]dis cur
#
version 7.1.064, Release 8860P12
#
sysname fanghuoqiang
#
clock protocol none
#
context Admin id 1
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
track 2 nqa entry admin mlink reaction 1
#
dns server 114.114.114.114
dns server 223.5.5.5
#
sysid fanghuoqiang
#
password-recovery enable
#
vlan 1
#
object-group ip address WIRELESS_NET
0 network subnet 192.168.8.0 255.255.254.0
#
policy-based-route neiwan permit node 5
if-match acl 3000
apply next-hop 111.36.84.1
#
policy-based-route neiwan permit node 10
if-match acl 3001
apply next-hop 10.17.254.209
#
policy-based-route p1 permit node 1
if-match acl 3010
apply next-hop 111.36.84.1
#
nqa entry admin mlink
type icmp-echo
destination ip 111.36.84.1
frequency 5000
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trap-only
#
nqa schedule admin mlink start-time now lifetime forever
#
interface NULL0
#
interface GigabitEthernet1/0/0
port link-mode route
#
interface GigabitEthernet1/0/1
port link-mode route
description t
bandwidth 1000000
ip address 10.17.254.210 255.255.255.252
dns server 218.201.96.130
#
interface GigabitEthernet1/0/2
port link-mode route
ip address 111.36.84.104 255.255.255.128
dns server 218.201.96.130
tcp mss 1360
#
interface GigabitEthernet1/0/3
port link-mode route
#
interface GigabitEthernet1/0/4
port link-mode route
#
interface GigabitEthernet1/0/5
port link-mode route
#
interface GigabitEthernet1/0/6
port link-mode route
#
interface GigabitEthernet1/0/7
port link-mode route
#
interface GigabitEthernet1/0/8
port link-mode route
#
interface GigabitEthernet1/0/9
port link-mode route
#
interface GigabitEthernet1/0/10
port link-mode route
#
interface GigabitEthernet1/0/11
port link-mode route
undo dhcp select server
#
interface GigabitEthernet1/0/12
port link-mode route
#
interface GigabitEthernet1/0/13
port link-mode route
#
interface GigabitEthernet1/0/14
port link-mode route
#
interface GigabitEthernet1/0/15
port link-mode route
#
interface GigabitEthernet1/0/16
port link-mode route
#
interface GigabitEthernet1/0/17
port link-mode route
#
interface GigabitEthernet1/0/18
port link-mode route
#
interface GigabitEthernet1/0/19
port link-mode route
#
interface GigabitEthernet1/0/20
port link-mode route
#
interface GigabitEthernet1/0/21
port link-mode route
#
interface GigabitEthernet1/0/22
port link-mode route
combo enable fiber
#
interface GigabitEthernet1/0/23
port link-mode route
description GuideLan Interface
combo enable fiber
ip address 172.16.17.1 255.255.255.0
tcp mss 1360
undo dhcp select server
#
interface GigabitEthernet1/0/24
port link-mode route
combo enable fiber
#
interface GigabitEthernet1/0/25
port link-mode route
combo enable fiber
#
interface GigabitEthernet1/0/26
port link-mode route
combo enable fiber
#
interface GigabitEthernet1/0/27
port link-mode route
combo enable fiber
#
interface GigabitEthernet1/0/28
port link-mode route
combo enable fiber
#
interface GigabitEthernet1/0/29
port link-mode route
combo enable fiber
#
interface M-GigabitEthernet1/0/0
ip address 192.168.0.1 255.255.255.0
#
interface M-GigabitEthernet1/0/1
ip address 192.168.1.1 255.255.255.0
#
interface Ten-GigabitEthernet1/0/30
port link-mode route
#
interface Ten-GigabitEthernet1/0/31
port link-mode route
#
security-zone name Local
#
security-zone name Trust
import interface GigabitEthernet1/0/11
import interface GigabitEthernet1/0/23
#
security-zone name DMZ
#
security-zone name Untrust
import interface GigabitEthernet1/0/1
import interface GigabitEthernet1/0/2
#
security-zone name Management
import interface M-GigabitEthernet1/0/0
import interface M-GigabitEthernet1/0/1
#
scheduler logfile size 16
#
line class aux
user-role network-operator
#
line class console
authentication-mode scheme
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line con 0
user-role network-admin
#
line vty 0 63
authentication-mode scheme
user-role network-admin
#
ip route-static 0.0.0.0 0 10.17.254.209
ip route-static 0.0.0.0 0 111.36.84.1 preference 80
ip route-static 10.18.40.0 24 172.16.17.2
ip route-static 10.19.248.0 21 172.16.17.2
ip route-static 192.168.5.0 24 172.16.17.2
ip route-static 192.168.8.0 23 172.16.17.2
#
info-center source CFGLOG loghost level informational
#
ssh server enable
#
arp ip-conflict log prompt
arp static 172.16.17.114 8c16-4529-3fb7
#
acl advanced 3000
rule 0 permit ip source 192.168.8.0 0.0.0.255
rule 5 permit ip source 192.168.5.0 0.0.0.255
#
acl advanced 3001
rule 0 permit ip source 10.18.40.0 0.0.0.255
rule 5 permit ip source 10.19.248.0 0.0.7.255
#
domain system
#
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
user-group system
#
local-user admin class manage
password hash $h$6$FGubCyE2s+6KfE9M$TYpjd18MOcKrMJz+yFF1cm3kjWS5R3KKDm2EBX+UIsy6/Xa0X+VeQ/Hw3AMt/d3uzh7Cz3yMwaZR+q6rHILQjQ==
service-type ssh telnet terminal https
authorization-attribute user-role level-3
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
ipsec logging negotiation enable
#
nat global-policy
rule name GlobalPolicyRule_1
description GuideNat
source-zone Trust
destination-zone Untrust
action snat easy-ip
#
ike logging negotiation enable
#
ip https enable
#
blacklist global enable
#
app-profile 0_IPv4
ips apply policy guideipspolicy mode protect
#
traffic-policy
all-traffic-control enable
rule 1 name GuideWANAccPolicy
action none
source-zone Trust
destination-zone DMZ
destination-zone Untrust
service ike
service ipsec-ah
service ipsec-esp
service l2tp
service nat-t-ipsec
rule 2 name GuideAVCPolicy
action none
source-zone Trust
destination-zone DMZ
destination-zone Untrust
profile name guideavcprofile1
bandwidth downstream guaranteed 700000
bandwidth downstream maximum 700000
bandwidth upstream guaranteed per-ip 30000
bandwidth upstream maximum per-ip 30000
bandwidth downstream guaranteed per-ip 30000
bandwidth downstream maximum per-ip 30000
profile name guidewanaccprofile
bandwidth downstream guaranteed 300000
bandwidth downstream maximum 300000
bandwidth upstream guaranteed per-ip 30000
bandwidth upstream maximum per-ip 30000
bandwidth downstream guaranteed per-ip 30000
bandwidth downstream maximum per-ip 30000
#
security-policy ip
rule 0 name GuideSecPolicy
action pass
profile 0_IPv4
source-zone Trust
source-zone Local
source-zone Untrust
destination-zone Untrust
destination-zone DMZ
destination-zone Local
destination-zone Trust
#
ips policy guideipspolicy
severity-level critical
protect-target WebServer Any
protect-target WebServer Other
protect-target WebServer WebLogic
#
cloud-management server domain oasis.h3c.com
#
return

粉丝:95人 关注:11人

配置下保持上一条功能 

编辑答案

你正在编辑答案

如果你要对问题或其他回答进行点评或询问,请使用评论功能。

✖

分享扩散:

➤

提出建议

✖

    +
✖

亲~登录后才可以操作哦!

确定
✖

亲~检测到您登陆的账号未在http://hclhub.h3c.com进行注册

注册后可访问此模块

跳转hclhub
✖

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作

✖

举报

×

侵犯我的权益 >
对根叔社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 pub.zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到pub.zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明