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

防火墙 DNAT

2023-11-20提问
  • 0关注
  • 0收藏,665浏览
粉丝:0人 关注:0人

问题描述:

防火墙做 目的nat ,外网访问服务器端口不通

以下是debug信息

<H3C>dis cur*Nov 20 17:36:03:053 2023 H3C IPFW/7/IPFW_PACKET: Receiving, interface = GigabitEthernet1/0/1 version = 4, headlen = 20, tos = 0 pktlen = 52, pktid = 3201, offset = 0, ttl = 117, protocol = 6 checksum = 6148, s = 183.150.182.186, d = 221.10.149.227 channelID = 0, vpn-InstanceIn = 0, vpn-InstanceOut = 0. VsysID = 1 prompt: Receiving IP packet from interface GigabitEthernet1/0/1. Payload: TCP source port = 53542, destination port = 8083 sequence num = 0xfaf69de8, acknowledgement num = 0x00000000, flags = 0x2 window size = 64240, checksum = 0x0a91, header length = 32. *Nov 20 17:36:03:053 2023 H3C IPFW/7/IPFW_INFO: MBUF was intercepted! Phase Num is 1(pre routing), Service ID is 8(ipsec), Bitmap is c0004000000000, return 0(0:continue, 1:dropped, 2:consumed, 3:enqueued, 4:relay)! Interface is GigabitEthernet1/0/1, s= 183.150.182.186, d= 221.10.149.227, protocol= 6, pktid = 3201 VsysID = 1. *Nov 20 17:36:03:053 2023 H3C IPFW/7/IPFW_INFO: MBUF was intercepted! Phase Num is 1(pre routing), Service ID is 9(ipsec attack), Bitmap is 40004000000000, return 0(0:continue, 1:dropped, 2:consumed, 3:enqueued, 4:relay)! Interface is GigabitEthernet1/0/1, s= 183.150.182.186, d= 221.10.149.227, protocol= 6, pktid = 3201 VsysID = 1. *Nov 20 17:36:03:053 2023 H3C IPFW/7/IPFW_INFO: MBUF was intercepted! Phase Num is 1(pre routing), Service ID is 25(nat), Bitmap is 4000000000, return 0(0:continue, 1:dropped, 2:consumed, 3:enqueued, 4:relay)! Interface is GigabitEthernet1/0/1, s= 183.150.182.186, d= 221.10.149.227, protocol= 6, pktid = 3201 VsysID = 1. *Nov 20 17:36:03:053 2023 H3C IPFW/7/IPFW_INFO: MBUF was intercepted! Phase Num is 2(pre routing2), Service ID is 1(tcp mss all), Bitmap is 4000000000000000, return 0(0:continue, 1:dropped, 2:consumed, 3:enqueued, 4:relay)! Interface is GigabitEthernet1/0/1, s= 183.150.182.186, d= 192.168.8.253, protocol= 6, pktid = 3201 VsysID = 1. *Nov 20 17:36:03:053 2023 H3C IPFW/7/IPFW_INFO: MBUF was intercepted! Phase Num is 3(post routing), Service ID is 1(keep lasthop), Bitmap is 4100000000000000, return 0(0:continue, 1:dropped, 2:consumed, 3:enqueued, 4:relay)! Interface is GigabitEthernet1/0/1, s= 183.150.182.186, d= 192.168.8.253, protocol= 6, pktid = 3201 VsysID = 1. *Nov 20 17:36:03:054 2023 H3C IPFW/7/IPFW_INFO: MBUF was intercepted! Phase Num is 3(post routing), Service ID is 7(rir), Bitmap is 100000000000000, return 0(0:continue, 1:dropped, 2:consumed, 3:enqueued, 4:relay)! Interface is GigabitEthernet1/0/1, s= 183.150.182.186, d= 192.168.8.253, protocol= 6, pktid = 3201 VsysID = 1. *Nov 20 17:36:03:054 2023 H3C FILTER/7/PACKET: The packet is permitted. Src-ZOne=Untrust, Dst-ZOne=Trust;If-In=GigabitEthernet1/0/1(2), If-Out=GigabitEthernet1/0/5(6); Packet Info:Src-IP=183.150.182.186, Dst-IP=192.168.8.253, VPN-Instance=, Src-MacAddr=cc1a-faee-cac0,Src-Port=53542, Dst-Port=8083, Protocol=TCP(6), Application=general_tcp(2086),Terminal=invalid(0), SecurityPolicy=Dnat, Rule-ID=2. *Nov 20 17:36:03:054 2023 H3C IPFW/7/IPFW_INFO: MBUF was intercepted! Phase Num is 9(post routing beforefrag), Service ID is 3(interzone), Bitmap is 1100004000000000, return 0(0:continue, 1:dropped, 2:consumed, 3:enqueued, 4:relay)! Interface is GigabitEthernet1/0/5, s= 183.150.182.186, d= 192.168.8.253, protocol= 6, pktid = 3201 VsysID = 1. *Nov 20 17:36:03:054 2023 H3C IPFW/7/IPFW_INFO: MBUF was intercepted! Phase Num is 9(post routing beforefrag), Service ID is 7(nat), Bitmap is 100004000000000, return 0(0:continue, 1:dropped, 2:consumed, 3:enqueued, 4:relay)! Interface is GigabitEthernet1/0/5, s= 183.150.182.186, d= 192.168.8.253, protocol= 6, pktid = 3201 VsysID = 1. *Nov 20 17:36:03:054 2023 H3C IPFW/7/IPFW_INFO: MBUF was intercepted! Phase Num is 9(post routing beforefrag), Service ID is 25(tcp mss all), Bitmap is 4000000000, return 0(0:continue, 1:dropped, 2:consumed, 3:enqueued, 4:relay)! Interface is GigabitEthernet1/0/5, s= 183.150.182.186, d= 192.168.8.253, protocol= 6, pktid = 3201 VsysID = 1. *Nov 20 17:36:03:054 2023 H3C IPFW/7/IPFW_PACKET: Sending, interface = GigabitEthernet1/0/5 version = 4, headlen = 20, tos = 0 pktlen = 52, pktid = 3201, offset = 0, ttl = 116, protocol = 6 checksum = 49740, s = 183.150.182.186, d = 192.168.8.253 channelID = 0, vpn-InstanceIn = 0, vpn-InstanceOut = 0. VsysID = 1 prompt: Sending IP packet received from interface GigabitEthernet1/0/1 at interface GigabitEthernet1/0/5. Payload: TCP source port = 53542, destination port = 8083 sequence num = 0xfaf69de8, acknowledgement num = 0x00000000, flags = 0x2 window size = 64240, checksum = 0xb3d9, header length = 32.


会话信息

<H3C>dis session table ipv4 destination-port 8083 verbose Slot 1: Initiator: Source IP/port: 183.150.182.186/54169 Destination IP/port: 221.10.149.227/8083 DS-Lite tunnel peer: - VPN instance/VLAN ID/Inline ID: -/-/- Protocol: TCP(6) Inbound interface: GigabitEthernet1/0/1 Source security zone: Untrust Responder: Source IP/port: 192.168.8.253/8083 Destination IP/port: 183.150.182.186/54169 DS-Lite tunnel peer: - VPN instance/VLAN ID/Inline ID: -/-/- Protocol: TCP(6) Inbound interface: GigabitEthernet1/0/5 Source security zone: Trust State: TCP_SYN_SENT Application: GENERAL_TCP Rule ID: 2 Rule name: Dnat Start time: 2023-11-20 17:38:13 TTL: 29s Initiator->Responder: 0 packets 0 bytes Responder->Initiator: 0 packets 0 bytes Total sessions found: 1


服务器本地端口测试过可通,且ping出接口网关均可通


组网及组网描述:


最佳答案

粉丝:15人 关注:0人

把配置做为附件传上来吧,你种显示看不清。

暂无评论

1 个回答
粉丝:18人 关注:5人

配置有问题吧。
把nat的配置贴出来吧。

暂无评论

编辑答案

你正在编辑答案

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

分享扩散:

提出建议

    +

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

确定

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

对根叔社区有害的内容

×

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

不规范转载

×

举报说明