
[Router-interzone-company-external]
packet-filter 3002 outbound
[Router-interzone-company-external]
quit
Step 6
Verify the configuration.
After the configuration is complete, only the host at 202.39.2.3 can access internal servers and
only internal servers can access the external network.
Run the
display firewall interzone
[
zone-name1
zone-name2
] command on the Router, and
the result is as follows:
[Router]
display firewall interzone company external
interzone company external
firewall enable
packet-filter default deny inbound
packet-filter default permit outbound
packet-filter 3001 inbound
packet-filter 3002 outbound
----End
Configuration Files
# Configuration file of the Router
#
sysname Router
#
vlan batch 100
#
acl number 3001
rule 5 permit tcp source 202.39.2.3 0.0.0.0 destination 202.169.10.5 0.0.0.0
rule 10 permit tcp source 202.39.2.3 0.0.0.0 destination 202.169.10.6 0.0.0.0
rule 15 permit tcp source 202.39.2.3 0.0.0.0 destination 202.169.10.7 0.0.0.0
rule 20 deny ip
#
acl number 3002
rule 5 permit ip source 202.169.10.5 0.0.0.0
rule 10 permit ip source 202.169.10.6
0.0.0.0
rule 15 permit ip source 202.169.10.7
0.0.0.0
rule 20 deny ip
#
interface Vlanif100
ip address 202.169.10.1 255.255.255.0
zone company
#
firewall zone company
priority 12
#
firewall zone external
priority 5
#
firewall interzone company
external
firewall enable
packet-filter 3001 inbound
packet-filter 3002 outbound
#
interface Ethernet0/0/0
port link-type access
port default vlan 100
#
interface
GigabitEthernet0/0/1
Huawei AR1200-S Series Enterprise Routers
Configuration Guide - Security
10 ACL Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
213