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

防火墙sip回包异常

8小时前提问
  • 0关注
  • 0收藏,43浏览
粉丝:0人 关注:0人

问题描述:

sip业务133.230.4.12, Dst: 10.240.0.16的回包,发现Connection Information (c): IN IP4 198.19.255.131载荷没有转换为133.230.4.12防火墙的nat地址; 133.230.4.11, Dst: 10.240.0.16正常sip回包Connection Information (c): IN IP4 是133.230.4.16;开启了nat alg sip ;请问我这边nat策略是由有问题

 

组网及组网描述:

nat global-policy

 rule name 10.240.0.16to198.19.255.4

  destination-ip 133.230.4.11

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.255.4 vrrp 4

  counting enable

 rule name GlobalPolicyRule_35

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.255.4

  action snat object-group 133.230.4.11 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.255.129

  source-zone Trust

  destination-ip 133.230.4.12

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.255.129 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.255.129_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.255.129

  action snat object-group 133.230.4.12 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.255.130

  source-zone Trust

  destination-ip 133.230.4.13

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.255.130 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.255.130_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.255.130

  action snat object-group 133.230.4.13 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.255.5

  source-zone Trust

  destination-ip 133.230.4.14

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.255.5 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.255.5_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.255.5

  action snat object-group 133.230.4.14 vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.255.6

  source-zone Trust

  destination-ip 133.230.4.15

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.255.6 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.255.6_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.255.6

  action snat object-group 133.230.4.15 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.255.131

  source-zone Trust

  destination-ip 133.230.4.16

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.255.131 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.255.131_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.255.131

  action snat object-group 133.230.4.16 vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.255.132

  source-zone Trust

  destination-ip 133.230.4.17

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.255.132 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.255.132_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.255.132

  action snat object-group 133.230.4.17 vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.254.4

  source-zone Trust

  destination-ip 133.230.4.18

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.254.4 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.254.4_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.254.4

  action snat object-group 133.230.4.18 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.254.5

  source-zone Trust

  destination-ip 133.230.4.19

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.254.5 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.254.5_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.254.5

  action snat object-group 133.230.4.19 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.254.6

  source-zone Trust

  destination-ip 133.230.4.20

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.254.6 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.254.6_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.254.6

  action snat object-group 133.230.4.20 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.254.7

  source-zone Trust

  destination-ip 133.230.4.21

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.254.7 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.254.7_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.254.7

  action snat object-group 133.230.4.21 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.254.8

  source-zone Trust

  destination-ip 133.230.4.22

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.254.8 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.254.8_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.254.8

  action snat object-group 133.230.4.22 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.254.9

  source-zone Trust

  destination-ip 133.230.4.23

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.254.9 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.254.9_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.254.9

  action snat object-group 133.230.4.23 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.240.0.16to198.19.254.10

  source-zone Trust

  destination-ip 133.230.4.24

  source-ip host 10.240.0.16

  action snat object-group 10.17.108.192 no-pat reversible

  action dnat ip-address 198.19.254.10 vrrp 4

  counting enable

 rule name 10.240.0.16to198.19.254.10_back

  source-zone Untrust

  destination-ip 10.17.108.192

  source-ip host 198.19.254.10

  action snat object-group 133.230.4.24 no-pat reversible vrrp 4

  action dnat ip-address 10.240.0.16

  counting enable

 rule name 10.242.0.2to198.19.255.4

  source-zone Trust

  destination-ip 133.230.4.11

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.255.4 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.255.4_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.255.4

  action snat object-group 133.230.4.11 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.255.129

  source-zone Trust

  destination-ip 133.230.4.12

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.255.129 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.255.129_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.255.129

  action snat object-group 133.230.4.12 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.255.130

  source-zone Trust

  destination-ip 133.230.4.13

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.255.130 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.255.130_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.255.130

  action snat object-group 133.230.4.13 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.255.5

  source-zone Trust

  destination-ip 133.230.4.14

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.255.5 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.255.5_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.255.5

  action snat object-group 133.230.4.14 vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.255.6

  source-zone Trust

  destination-ip 133.230.4.15

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.255.6 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.255.6_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.255.6

  action snat object-group 133.230.4.15 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.255.131

  source-zone Trust

  destination-ip 133.230.4.16

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.255.131 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.255.131_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.255.131

  action snat object-group 133.230.4.16 vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.255.132

  source-zone Trust

  destination-ip 133.230.4.17

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.255.132 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.255.132_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.255.132

  action snat object-group 133.230.4.17 vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.254.4

  source-zone Trust

  destination-ip 133.230.4.18

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.254.4 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.254.4_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.254.4

  action snat object-group 133.230.4.18 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.254.5

  source-zone Trust

  destination-ip 133.230.4.19

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.254.5 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.254.5_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.254.5

  action snat object-group 133.230.4.19 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.254.6

  source-zone Trust

  destination-ip 133.230.4.20

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.254.6 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.254.6_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.254.6

  action snat object-group 133.230.4.20 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.254.7

  source-zone Trust

  destination-ip 133.230.4.21

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.254.7 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.254.7_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.254.7

  action snat object-group 133.230.4.21 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.254.8

  source-zone Trust

  destination-ip 133.230.4.22

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.254.8 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.254.8_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.254.8

  action snat object-group 133.230.4.22 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.254.9

  source-zone Trust

  destination-ip 133.230.4.23

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.254.9 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.254.9_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.254.9

  action snat object-group 133.230.4.23 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enable

 rule name 10.242.0.2to198.19.254.10

  source-zone Trust

  destination-ip 133.230.4.24

  source-ip host 10.242.0.2

  action snat object-group 10.17.108.193

  action dnat ip-address 198.19.254.10 vrrp 4

  counting enable

 rule name 10.242.0.2to198.19.254.10_back

  source-zone Untrust

  destination-ip 10.17.108.193

  source-ip host 198.19.254.10

  action snat object-group 133.230.4.24 no-pat reversible vrrp 4

  action dnat ip-address 10.242.0.2

  counting enabl

1 个回答
粉丝:20人 关注:9人

从现象看,问题出在NAT策略的匹配规则上。你配置的NAT策略是:
rule name 10.240.0.16to198.19.255.4
destination-ip 133.230.4.11
source-ip host 10.240.0.16
action snat object-group 10
关键问题:该策略只匹配了 133.230.4.11 作为目的地址,而回包流量(从133.230.4.12发往10.240.0.16)的目的地址是 10.240.0.16,源地址是 133.230.4.12。你的策略方向是出方向(从内到外),但SIP回包是入方向(从外到内),需要检查:
1. NAT策略方向:确认该策略是否同时应用于入方向和出方向。若只应用于出方向,回包无法匹配。
2. 目的地址匹配:回包的源地址是 133.230.4.12,而策略中 destination-ip 是 133.230.4.11,不匹配。需要为 133.230.4.12 单独配置或扩大匹配范围。
建议排查:
bash
查看NAT策略命中统计
display nat policy rule 10.240.0.16to198.19.255.4
查看会话表,确认回包是否命中NAT
display session table ipv4 source-ip 133.230.4.12 destination-ip 10.240.0.16 verbose
修正方案:
rule name sip-nat
source-ip host 10.240.0.16
destination-ip range 133.230.4.11 133.230.4.12
action snat object-group 10
或使用地址组:
object-group ip address sip-servers
0 network host 133.230.4.11
1 network host 133.230.4.12
然后策略中 destination-ip address-group sip-servers。
同时确认ALG已开启且NAT策略允许SIP端口(5060/5061)的流量。

暂无评论

编辑答案

你正在编辑答案

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

✖

分享扩散:

➤

提出建议

✖

    +
✖

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

确定
✖

亲~检测到您登陆的账号未在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. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

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

不规范转载

×

举报说明