标签:The mamicode 通过 pc2 perm action 允许 需求 security
USG6600防火墙默认的初始账号密码为,账号admin,密码Admin@123,首次登陆时需更改密码。一般情况下,华为新一代的防火墙,默认情况下,只有0口是可以允许所有服务的,用户可根据需求开启相应的端口服务,此处我们是使用模拟器做实验,只需开启在接口模式下,使用命令service-manage ping permit开启ping服务即可
sys
sysn FE_A
inter g1/0/0
ip address 192.168.1.1 24
service-manage ping permit
quit
interface GigabitEthernet 1/0/1
ip address 10.1.1.1 24
service-manage ping permit
quit
interface GigabitEthernet 1/0/2
ip address 200.1.1.1 24
service-manage ping permit
quit
firewall zone trust
add interface GigabitEthernet 1/0/0 //将端口加入trust区
quit
firewall zone dmz
add interface GigabitEthernet 1/0/1 //将端口加入DMZ区
quit
firewall zone untrust
add interface GigabitEthernet 1/0/2 //将端口加入untrust区
quit
security-policy //进入安全策略
rule name policy_trust_untrust //定义规则名称为policy_trust_untrust
source-zone trust //定义数据流方向的源端
destination-zone untrust //定义数据流方向的目的端
action permit //动作允许通过
quit
rule name policy_trust_dmz
source-zone dmz
destination-zone trust
action permit
quit
rule name policy_dmz_untrust
source-zone dmz
destination-zone untrust
action permit
return
DMZ区PC1 :10.1.1.2
trust区PC2:192.168.1.2
untrust区PC3:200.1.1.2
标签:The mamicode 通过 pc2 perm action 允许 需求 security
原文地址:https://blog.51cto.com/12184141/2403119