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

H3C SecPath F100+网络NAT配置

2024-03-16提问
  • 0关注
  • 0收藏,1151浏览
粉丝:0人 关注:0人

问题描述:

interface GigabitEthernet1/0/2 是互联网WAN口,ip为192.168.0.230/24 网关192.168.0.1

interface GigabitEthernet1/0/4 是局域网LAN口,IP为10.5.168.1/24,对接的是三层交换机(IP:10.5.168.2/24)

三层交换机下挂的服务器IP段为(10.7.168.X)

请问我的整体配置正确吗?按照安全策略、NAT映射列表、静态路由,请问NAT策略配置是否可生效?

以下是防火墙配置:

#

 version 7.1.064, Release 8560P39

#

 sysname H3C

#

 clock protocol none

#

 irf mac-address persistent timer

 irf auto-update enable

 undo irf link-delay

 irf member 1 priority 1

#

 dns server 8.8.8.8

 dns server 114.114.114.114

#

 password-recovery enable

#

vlan 1

#

interface NULL0

#

interface GigabitEthernet1/0/0

 port link-mode route

 ip address 192.168.10.1 255.255.255.0

#

interface GigabitEthernet1/0/1

 port link-mode route

#

interface GigabitEthernet1/0/2

 port link-mode route

 description GuideWan Interface

 ip address 192.168.0.230 255.255.255.0

 dns server 114.114.114.114

 nat server protocol tcp global current-interface 76 inside 10.7.168.16 80 rule S1

 nat server protocol tcp global current-interface 78 inside 10.7.168.15 80 rule ServerRule_8

 nat server protocol tcp global current-interface 81 inside 10.7.168.10 80 rule ServerRule_9

 nat server protocol tcp global current-interface 83 inside 10.7.168.14 83 rule ServerRule_10

 nat server protocol tcp global current-interface 84 inside 10.7.168.13 22 rule ServerRule_11

 nat server protocol tcp global current-interface 85 inside 10.7.168.14 55555 rule ServerRule_12

 nat server protocol tcp global current-interface 86 inside 10.7.168.12 22 rule ServerRule_13

 nat server protocol tcp global current-interface 123 inside 10.7.168.14 123 rule ServerRule_14

 nat server protocol tcp global current-interface 443 inside 10.5.168.1 443 rule ServerRule_55

 nat server protocol tcp global current-interface 552 inside 10.7.168.15 555 rule ServerRule_15

 nat server protocol tcp global current-interface 553 inside 10.7.168.15 555 rule ServerRule_16

 nat server protocol tcp global current-interface 554 inside 10.7.168.14 554 rule ServerRule_17

 nat server protocol tcp global current-interface 559 inside 10.7.168.14 559 rule ServerRule_18

 nat server protocol tcp global current-interface 655 inside 10.7.168.14 655 rule ServerRule_19

 nat server protocol tcp global current-interface 1443 inside 10.7.168.14 443 rule ServerRule_20

 nat server protocol tcp global current-interface 1935 inside 10.7.168.14 1935 rule ServerRule_21

 nat server protocol tcp global current-interface 2330 inside 10.7.168.1 23 rule ServerRule_22

 nat server protocol tcp global current-interface 5010 inside 10.7.168.14 5010 rule ServerRule_23

 nat server protocol tcp global current-interface 6009 inside 10.7.168.14 6009 rule ServerRule_24

 nat server protocol tcp global current-interface 6014 inside 10.7.168.14 6015 rule ServerRule_25

 nat server protocol tcp global current-interface 6201 inside 10.5.168.3 6201 rule SerRule1

 nat server protocol tcp global current-interface 6633 inside 192.168.2.1 6633 rule ServerRule_26

 nat server protocol tcp global current-interface 7010 inside 10.7.168.14 7010 rule ServerRule_27

 nat server protocol tcp global current-interface 7031 inside 10.7.168.14 7031 rule ServerRule_28

 nat server protocol tcp global current-interface 7033 inside 10.7.168.14 7033 rule ServerRule_29

 nat server protocol tcp global current-interface 7087 inside 10.7.168.14 7087 rule ServerRule_30

 nat server protocol tcp global current-interface 7099 inside 10.7.168.14 7199 rule ServerRule_31

 nat server protocol tcp global current-interface 7100 inside 10.7.168.14 7100 rule ServerRule_32

 nat server protocol tcp global current-interface 7302 inside 10.7.168.14 7303 rule ServerRule_33

 nat server protocol tcp global current-interface 7304 inside 10.7.168.14 7304 rule ServerRule_34

 nat server protocol tcp global current-interface 7307 inside 10.7.168.14 7307 rule ServerRule_35

 nat server protocol tcp global current-interface 7314 inside 10.7.168.14 7314 rule ServerRule_36

 nat server protocol tcp global current-interface 7660 inside 10.7.168.14 7660 rule ServerRule_37

 nat server protocol tcp global current-interface 8000 inside 10.7.168.10 8001 rule ServerRule_38

 nat server protocol tcp global current-interface 8001 inside 10.7.168.14 18001 rule ServerRule_39

 nat server protocol tcp global current-interface 8002 inside 10.7.168.16 8001 rule ServerRule_40

 nat server protocol tcp global current-interface 8003 inside 10.7.168.15 8001 rule ServerRule_41

 nat server protocol tcp global current-interface 8098 inside 10.5.168.1 443 rule ServerRule_42

 nat server protocol tcp global current-interface 8201 8202 inside 10.7.168.13 8201 8202 rule ServerRule_43

 nat server protocol tcp global current-interface 8204 inside 10.7.168.13 8204 rule ServerRule_44

 nat server protocol tcp global current-interface 8208 8220 inside 10.7.168.13 8208 8220 rule ServerRule_45

 nat server protocol tcp global current-interface 8222 8400 inside 10.7.168.13 8222 8400 rule ServerRule_46

 nat server protocol tcp global current-interface 8603 inside 10.7.168.14 10000 rule ServerRule_47

 nat server protocol tcp global current-interface 8800 8999 inside 10.7.168.14 8800 8999 rule ServerRule_48

 nat server protocol tcp global current-interface 9017 inside 10.7.168.14 10000 rule ServerRule_49

 nat server protocol tcp global current-interface 9018 inside 10.7.168.14 9017 rule ServerRule_50

 nat server protocol tcp global current-interface 15000 16999 inside 10.7.168.14 15000 16999 rule ServerRule_51

 nat server protocol tcp global current-interface 17000 inside 10.7.168.14 17000 rule ServerRule_52

 nat server protocol tcp global current-interface 55555 inside 10.7.168.14 55554 rule ServerRule_53

 nat server protocol udp global current-interface 53 inside 10.7.168.13 56666 rule ServerRule_54

 manage http inbound

 manage http outbound

 manage https inbound

 manage https outbound

 manage netconf-http inbound

 manage netconf-https inbound

 manage netconf-ssh inbound

 manage ping inbound

 manage ping outbound

 manage snmp inbound

 manage ssh inbound

 manage ssh outbound

 manage telnet inbound

 manage telnet outbound

 gateway 192.168.0.1

#

interface GigabitEthernet1/0/3

 port link-mode route

#

interface GigabitEthernet1/0/4

 port link-mode route

 description GuideLan Interface

 ip address 10.5.168.1 255.255.255.0

 manage http inbound

 manage http outbound

 manage https inbound

 manage https outbound

 manage netconf-http inbound

 manage netconf-https inbound

 manage netconf-ssh inbound

 manage ping inbound

 manage ping outbound

 manage snmp inbound

 manage ssh inbound

 manage ssh outbound

 manage telnet inbound

 manage telnet outbound

 undo dhcp select server

#

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

#

security-zone name Local

#

security-zone name Trust

 import interface GigabitEthernet1/0/4

#

security-zone name DMZ

#

security-zone name Untrust

 import interface GigabitEthernet1/0/2

#

security-zone name Management

 import interface GigabitEthernet1/0/0

#

 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

 authentication-mode none

 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 GigabitEthernet1/0/2 192.168.0.1 preference 59

 ip route-static 10.0.0.0 8 GigabitEthernet1/0/4 10.5.168.2

#

performance-management

#

 ssh server enable

#

 undo password-control blacklist all-line

#

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$xc15w2Hq/cSxfUBl$75tYgHWaGc4pRoDFm9DLXXKcUbXsLljSuPZUoN0Ao4A7MTUvaTSbASw7qRF4K4SDjCb/ARHpaKqHfnR9/rc0qA==

 service-type ssh terminal https

 authorization-attribute user-role level-3

 authorization-attribute user-role network-admin

 authorization-attribute user-role network-operator

#

nat global-policy

 rule name GlobalPolicyRule_1

  description GuideNat

  source-zone Trust

  destination-zone Untrust

  action snat easy-ip

#

 ip https enable

#

 loadbalance isp file flash:/lbispinfo_v1.5.tp

#

security-policy ip

 rule 3 name GuideSecPolicy

  action pass

#

 cloud-management server domain opstunnel-seccloud.h3c.com

#

return

 

1 个回答
已采纳
粉丝:0人 关注:0人

配置上没什么大问题,不过建议接口nat和全局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. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔社区有害的内容

×

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

不规范转载

×

举报说明