No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


CLI-based Configuration Guide - Security

AR100, AR120, AR150, AR160, AR200, AR1200, AR2200, AR3200, and AR3600 V200R010

This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the network management feature supported by the device.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Port Mapping

Configuring Port Mapping


Application-layer protocols use well-known ports for communication. Port mapping enables you to define new port numbers for application-layer protocols, such as FTP, DNS, HTTP, SIP, PPTP and RTSP, which protect servers against service-specific attacks. Port mapping applies to service-sensitive features such as application specific packet filter (ASPF) and Network Address Translation (NAT).

Port mapping is implemented based on basic ACLs (2000 to 2999). The firewall matches destination IP addresses of packets with the IP addresses configured in basic ACL rules and performs port mapping only for the packets matching the ACL rules.


  1. Run system-view

    The system view is displayed.

  2. Run port-mapping { dns | ftp | http | sip | rtsp | pptp } 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 ACLs. That is, packets matching different ACL rules use different mapping entries.


    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, match the destination IP addresses of the packets with the source IP addresses defined in ACL rules.

Verifying the Configuration

  • Run the display port-mapping [ dns | ftp | http | rtsp | sip | port port-number | pptp ] command to check information about port mapping.
Updated: 2019-08-07

Document ID: EDOC1100034077

Views: 125644

Downloads: 230

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next