
l
Configuring zones and adding interfaces to the zones
l
Configuring the interzone and enabling the firewall function in the interzone
l
Creating the basic ACL and configuring ACL rules
Data Preparation
To configure port mapping, you need the following data.
No.
Data
1
Type of application-layer protocol
2
User-defined port to be mapped
3
Number of the basic ACL
3.8.2 Configuring Port Mapping
Port mapping maps protocols to ports based on a basic ACL.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
port-mapping
{
dns
|
ftp
|
http
|
sip
|
rtsp
}
port
port-number
acl
acl-number
Port mapping is configured.
You can map multiple ports to a protocol, or map a port to multiple protocols. The mappings,
however, must be distinguished by the ACL. That is, packets matching different ACL rules use
different mapping entries.
NOTE
Port mapping identifies the protocol type of the packets destined for an IP address (such as the IP address
of a WWW server); therefore, when configuring the basic ACL rules, you need to match the destination
IP addresses of the packets with the source IP addresses defined in ACL rules.
----End
3.8.3 Checking the Configuration
After port mapping is configured, you can view information about port mapping.
Procedure
l
Run the
display port-mapping
[
dns
|
ftp
|
http
|
rtsp
|
sip
|
port
port-number
] command
to view information about port mapping.
----End
Huawei AR1200-S Series Enterprise Routers
Configuration Guide - Security
3 Firewall Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
64