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 - IP Service

AR500, AR510, AR531, AR550, AR1500, and AR2500 V200R010

This document describes the concepts and configuration procedures of IP Service features on the device, and provides the configuration examples.

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).
(Optional) Enabling NAT ALG

(Optional) Enabling NAT ALG


Generally, NAT translates only the IP address in the IP packet header and the interface number in the TCP/UDP header. Packets of some protocols such as DNS and FTP contain the IP address or interface number in the Data field. Such content cannot be translated using NAT. Therefore, communication between internal and external networks will fail.

The application level gateway (ALG) function enables the NAT device to identify the IP address or interface number in the Data field, and translate addresses based on the mapping table. In this way, packets can traverse NAT devices. Currently, the ALG function supports DNS, FTP, SIP, PPTP, and RTSP.


  1. Run system-view

    The system view is displayed.

  2. Run nat alg { all | protocol-name } enable

    The NAT ALG function for specified application protocols is enabled.

    By default, the NAT ALG function is disabled.

  3. (Optional) Run port-mapping { dns | ftp | sip | rtsp | pptp } port port-number acl acl-number

    The port mapping is configured.

    Run the port-mapping command to configure port mapping when the application protocol that is enabled with the NAT ALG function uses a non-well-known port number, namely a non-default port number.

Updated: 2019-05-20

Document ID: EDOC1100034231

Views: 88655

Downloads: 57

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next