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).
Port Mapping

Port Mapping

The application-layer protocols use well-known ports for communication. Port mapping allows you to define new port numbers for different applications or specify the range of hosts that use non-well-known port numbers.

Port mapping applies to service-sensitive features such as application specific packet filter (ASPF) and Network Address Translation (NAT). For example, the FTP server on an enterprise intranet provides the FTP service through port 2121. When accessing the FTP server through a NAT server, users must use port 2121. By default, port 21 is used for FTP packets. The FTP server cannot identify the FTP packets that use port 21. In this case, you need to map port 2121 to the FTP protocol. After port mapping, the NAT server can identify the FTP packets that use port 2121 and send the FTP packets to the FTP server. In this way, users can access the FTP server.

The device provides ACL-based port mapping and performs port mapping only for the packets matching the specified ACL. Port mapping employs basic ACLs (2000 to 2999). In ACL-based packet filtering, the device matches the destination IP addresses of the packets with the IP address in the basic ACL rules.

As shown in Figure 6-6, the PC on the external network accesses the WWW server (port 8080) on the internal network. When the device receives packets sent by the PC, it matches the packets with the ACL. Only packets with the destination IP address can pass through the device.

Figure 6-6  Port mapping diagram
Updated: 2019-08-07

Document ID: EDOC1100034077

Views: 136973

Downloads: 244

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