H3C F100-C-G 防火墙想实现untrust到trust的固定端口连接
1、trust区域的设备不能访问untrust设备
2、untrust设备只能访问trust区域的二台固定IP地址,且端口号是2404的设备。
其他所有连接均不被允许。
麻烦问一下如何设置,谢谢!
(0)
最佳答案
你好
1.trust区域不能访问untrust区域,默认就是deny,可以不用管。
2.安全策略脚本如下(这是v7版本,你这个F100也是v7的)
object-group service 1 #定义服务组
service tcp destination eq 2404 #定义你的端口是tcp还是udp
service udp destination eq 2404
#配置安全策略
security-policy ip
rule 0 name per_untrust_trust
description trust
source-zone untrust
destination-ip xx.xx.xx.xx(ip1)
destination-ip xx.xx.xx.xx(ip2)
service 1 #只允许访问指定的端口
action pass
(0)
我先弄了个不限IP的,是使用web方式配置的,没有串口,所以没法用命令来配置。现在还没通,麻烦帮忙看一下,差在哪,谢谢! # version 5.20, Release 5142P02 # sysname H3C # clock timezone Beijing add 08:00:00 # undo voice vlan mac-address 00e0-bb00-0000 # interzone policy default by-priority # domain default enable system # port-security enable # undo alg dns undo alg rtsp undo alg h323 undo alg sip undo alg sqlnet undo alg pptp undo alg ils undo alg nbt undo alg msn undo alg qq undo alg tftp undo alg sccp undo alg gtp # session synchronization enable # password-recovery enable # vlan 1 # domain system access-limit disable state active idle-cut disable self-service-url disable # pki domain default crl check disable # user-group system group-attribute allow-guest # local-user admin password cipher $c$3$K4GrCvDX/fDNlQqddRB+4LynWbBc0v5S authorization-attribute level 3 service-type telnet service-type web # cwmp undo cwmp enable # interface NULL0 # interface GigabitEthernet0/0 port link-mode route ip address 192.168.0.1 255.255.255.0 # interface GigabitEthernet0/1 port link-mode route # interface GigabitEthernet0/2 port link-mode route # interface GigabitEthernet0/3 port link-mode route # interface GigabitEthernet0/4 port link-mode route # vd Root id 1 # zone name Management id 0 priority 100 import interface GigabitEthernet0/0 zone name Local id 1 priority 100 zone name Trust id 2 priority 85 import interface GigabitEthernet0/2 zone name DMZ id 3 priority 50 zone name Untrust id 4 priority 5 import interface GigabitEthernet0/1 switchto vd Root object service permit2404 service tcp destination-port 2404 zone name Management id 0 ip virtual-reassembly zone name Local id 1 ip virtual-reassembly zone name Trust id 2 ip virtual-reassembly zone name DMZ id 3 ip virtual-reassembly zone name Untrust id 4 ip virtual-reassembly interzone source Untrust destination Trust rule 0 permit comment 1 source-ip any_address destination-ip any_address service permit2404 rule enable # load xml-configuration # load tr069-configuration # user-interface con 0 user-interface vty 0 4 authentication-mode scheme # return
WEB更好配,你发这个简直没法看
防火墙->安全策略->域间策略,源域untrust,目的域trust,源IP地址any_address,目的IP地址any_address,服务名称选的是自定义服务的那个。过滤动作是Permit。
参考官方配置文件:
https://www.h3c.com/cn/Service/Document_Software/Document_Center/IP_Security/FW_VPN/F100-G/
(0)
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明