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

配置内网服务器多个端口出公网,安全策略要注意什么,求指教

2019-11-12提问
  • 0关注
  • 1收藏,1350浏览
粉丝:0人 关注:0人

问题描述:

内部服务器多个端口映射出公网IP,安全策略这边怎么设置,望指教

组网及组网描述:

公网进防火墙,在防火墙上做网关及DHCP,接接入交换机,再到设备

最佳答案

已采纳
粉丝:138人 关注:6人

您好,请知:
1、假设服务器192.168.1.1对外提供80,8081端口的服务,转换为外网ip 10.1.1.1,配置如下:
int gi 0/1
nat server protocol tcp global 10.1.1.1 80 inside 192.168.1.1 80

nat server protocol tcp global 10.1.1.1 8081 inside 192.168.1.1 8081

2、在防火墙放通域间策略。

3、内网路由可达到防火墙。







看了一下域间策略这里,只有源untrust到目的trust,没看到有源trust到目的untrust

得闲饮茶013 发表时间:2019-11-12 更多>>

# version 7.1.064, Release 9323P17 # sysname H3C # 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 # dhcp enable # password-recovery enable # vlan 1 # object-group ip address 2801-1 security-zone Trust 0 network host address 192.168.1.250 # object-group ip address neiwang security-zone Trust 0 network subnet 192.168.1.0 255.255.255.0 # object-group service 12000 0 service udp destination eq 12000 # object-group service 12000tcp 0 service tcp destination eq 12000 # object-group service 5060 0 service tcp destination eq 5060 # object-group service 5060UDP 0 service udp destination eq 5060 # object-group service 5062UDP 0 service udp destination eq 5062 # object-group service 5510 0 service tcp destination eq 5510 # object-group service 5511UDP 0 service udp destination eq 5511 # object-group service 7000UDP 0 service udp destination eq 7000 # object-group service 8000UDP 0 service udp destination eq 8000 # object-group service 8001UDP 0 service udp destination eq 8001 # object-group service 8002UDP 0 service udp destination eq 8002 # object-group service 8088 0 service tcp destination eq 8088 # object-group service 8088-80 0 service tcp destination range 80 8088 # object-group service 80tcp 0 service tcp destination eq 80 # dhcp server ip-pool NW gateway-list 192.168.1.1 network 192.168.1.0 mask 255.255.255.0 dns-list 114.114.114.114 202.103.224.68 static-bind ip-address 192.168.1.250 mask 255.255.255.0 hardware-address 2801 static-bind ip-address 192.168.1.251 mask 255.255.255.0 hardware-address 4444 # interface NULL0 # interface GigabitEthernet1/0/0 port link-mode route ip address 192.168.0.254 255.255.255.0 # interface GigabitEthernet1/0/1 port link-mode route ip address 180.140.242.150 255.255.255.0 ip address 180.140.242.151 255.255.255.0 sub nat outbound nat server protocol tcp global 180.140.242.150 5060 inside 192.168.1.250 5060 nat server protocol tcp global 180.140.242.150 5510 inside 192.168.1.250 5510 nat server protocol tcp global 180.140.242.150 8088 inside 192.168.1.250 80 nat server protocol tcp global 180.140.242.150 12000 inside 192.168.1.250 12000 nat server protocol udp global 180.140.242.150 5060 inside 192.168.1.250 5060 nat server protocol udp global 180.140.242.150 5062 inside 192.168.1.250 5062 nat server protocol udp global 180.140.242.150 5511 inside 192.168.1.250 5511 nat server protocol udp global 180.140.242.150 7000 inside 192.168.1.250 7000 nat server protocol udp global 180.140.242.150 8000 inside 192.168.1.250 8000 nat server protocol udp global 180.140.242.150 8001 inside 192.168.1.250 8001 nat server protocol udp global 180.140.242.150 8002 inside 192.168.1.250 8002 nat server protocol udp global 180.140.242.150 12000 inside 192.168.1.250 12000 # interface GigabitEthernet1/0/2 port link-mode route ip address 192.168.1.1 255.255.255.0 nat hairpin enable # 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 # 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 # interface GigabitEthernet1/0/23 port link-mode route # security-zone name Local # security-zone name Trust import interface GigabitEthernet1/0/2 # security-zone name DMZ # security-zone name Untrust import interface GigabitEthernet1/0/1 # 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 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 180.140.242.1 # ssh server enable # domain system # aaa session-limit ftp 16 aaa session-limit telnet 16 aaa session-limit ssh 16 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$fknRGqXXoOfqsTUk$JFWEr3kzVP4TW9hountFQOQD/XPPirPiF2ysGsfxF0kJupZ6TKo4mkyxgCfgfGlqVDuaGv7kweWvSplZjWyTCw== service-type ssh telnet terminal https authorization-attribute user-role level-3 authorization-attribute user-role network-admin authorization-attribute user-role network-operator # session statistics enable # ip https enable webui log enable # uapp-control # security-policy ip rule 0 name shangwang action pass source-zone Trust destination-zone Untrust source-ip neiwang rule 1 name hutong action pass source-zone Trust source-zone Local destination-zone Local destination-zone Trust rule 2 name 2801-1 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 12000 rule 3 name 2801-2 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 8088 rule 4 name 2801-3 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 5060 rule 5 name 2801-4 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 5060UDP rule 6 name 2801-5 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 5062UDP rule 7 name 2801-6 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 5510 rule 8 name 2801-7 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 7000UDP rule 9 name 2801-8 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 8000UDP rule 10 name 2801-9 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 8001UDP rule 11 name 2801-10 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 8002UDP rule 12 name 2801-11 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 12000tcp rule 13 name 2801-12 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 5511UDP rule 14 name 2801-13 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 80tcp rule 15 name 2801-14 action pass source-zone Untrust destination-zone Trust destination-ip 2801-1 service 8088-80 #

猪前进 发表时间:2019-11-12

这个是我的配置,外网输入公网加IP和端口8088无法访问,数据太长,无法发新帖提问

猪前进 发表时间:2019-11-12

看了一下域间策略这里,只有源untrust到目的trust,没看到有源trust到目的untrust

得闲饮茶013 发表时间:2019-11-12
2 个回答
粉丝:24人 关注:13人

不要对内网服务器的地址做安全策略了

粉丝:0人 关注:0人

这一步我已完成,现在是我在外网输入公网加端口,无法访问内部服务器,安全域那边设置应该是有问题

编辑答案

你正在编辑答案

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

分享扩散:

提出建议

    +

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

确定

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

对根叔社区有害的内容

×

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

不规范转载

×

举报说明