eNSP—防火墙基本操作2
拓扑图如下:1、FW1的基本配置:[SRG]sysname FW1[FW1]int g0/0/1[FW1-GigabitEthernet0/0/1]ip add 10.1.1.254 24[FW1-GigabitEthernet0/0/1]2022-02-24 22:32:38 FW1 %%01IFNET/4/LINK_STATE(l): Line protocol on interface Gi
·
拓扑如下:
【1】FW1的基本配置:
[SRG]sysname FW1
[FW1]int g0/0/1
[FW1-GigabitEthernet0/0/1]ip add 10.1.1.254 24
[FW1-GigabitEthernet0/0/1]int g0/0/2
[FW1-GigabitEthernet0/0/2]ip add 20.1.1.254 24
[FW1-GigabitEthernet0/0/2]int g0/0/3
[FW1-GigabitEthernet0/0/3]ip add 100.1.1.254 24
【2】防火墙的区域划分
[FW1]firewall zone trust
[FW1-zone-trust]add int g0/0/1
[FW1-zone-trust]quit
[FW1]firewall zone untrust
[FW1-zone-untrust]add int g0/0/2
[FW1-zone-untrust]quit
[FW1]firewall zone name dmz1
[FW1-zone-dmz1]set priority 69
[FW1-zone-dmz1]add int g0/0/3
【3】要求1(client1 ping通client2)的配置:
[FW1]policy interzone trust untrust outbound
[FW1-policy-interzone-trust-untrust-outbound]policy 1
[FW1-policy-interzone-trust-untrust-outbound-1]policy source 10.1.1.1 0
[FW1-policy-interzone-trust-untrust-outbound-1]policy destination 20.1.1.1 0
[FW1-policy-interzone-trust-untrust-outbound-1]policy service service-set icmp
[FW1-policy-interzone-trust-untrust-outbound-1]action permit
【4】要求2(client1可以访问FTP/HTTP服务)的配置:
[FW1]policy interzone trust dmz1 outbound
[FW1-policy-interzone-trust-dmz1-outbound]policy 1
[FW1-policy-interzone-trust-dmz1-outbound-1]policy source 10.1.1.1 0
[FW1-policy-interzone-trust-dmz1-outbound-1]policy destination 100.1.1.1 0
[FW1-policy-interzone-trust-dmz1-outbound-1]policy service service-set http
[FW1-policy-interzone-trust-dmz1-outbound-1]action permit
[FW1-policy-interzone-trust-dmz1-outbound-1]quit
[FW1-policy-interzone-trust-dmz1-outbound]policy 2
[FW1-policy-interzone-trust-dmz1-outbound-2]policy source 10.1.1.1 0
[FW1-policy-interzone-trust-dmz1-outbound-2]policy destination 100.1.1.1 0
[FW1-policy-interzone-trust-dmz1-outbound-2]policy service service-set ftp
[FW1-policy-interzone-trust-dmz1-outbound-2]action permit
[SRG-policy-interzone-trust-dmz1-outbound-2]quit
[SRG-policy-interzone-trust-dmz1-outbound]quit
[SRG]firewall interzone trust dmz1
[SRG-interzone-trust-dmz1]detect ftp
【5】要求3(client2 可以访问http服务)的配置:
[FW1]policy interzone untrust dmz1 inbound
[FW1-policy-interzone-dmz1-untrust-inbound]policy 1
[FW1-policy-interzone-dmz1-untrust-inbound-1]policy source 20.1.1.1 0
[FW1-policy-interzone-dmz1-untrust-inbound-1]policy destination 100.1.1.1 0
[FW1-policy-interzone-dmz1-untrust-inbound-1]policy service service-set http
[FW1-policy-interzone-dmz1-untrust-inbound-1]action permit
更多推荐
已为社区贡献2条内容
所有评论(0)