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

Reminder

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

upgrade

Fat AP and Cloud AP V200R010C00 Command Reference

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

Function

The port-mapping command configures the mappings between ports and application-layer protocols.

The undo port-mapping command deletes the mappings between ports and application-layer protocols.

For the default mapping between application-layer protocols and ports, see Table 6-84.
Table 6-84  Mappings between application-layer protocols and ports

Application-Layer Protocol

Port Number

dns

53

ftp

21

rtsp

554

pptp

1723

Format

port-mapping protocol-name port port-number acl acl-number

undo port-mapping { all | protocol-name port port-number acl acl-number }

Parameters

Parameter

Description

Value

protocol-name

Specifies the protocol type.

The value can be dns, ftp, rstp and pptp.

port port-number

Specifies the port mapping to a protocol.

The value of port-number is an integer that ranges from 1 to 65535.

acl acl-number

Specifies the ACL that controls the packets to which port mapping is applied.

The value of acl-number is an integer that ranges from 2000 to 2999.

all

Deletes the mappings from all ports.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Port mapping enables a server to provide various application-layer services for external systems through non-well-known ports. For example, the well-known port of the FTP service is port 21. After port mapping is configured on the nat device, the nat device can use a non-well-known port to provide the FTP service.

Port mapping reduces attacks to a certain service on the server.

Example

# Map the FTP service to port 10 and apply ACL 2000 to control the packets to which the mapping takes effect.

<Huawei> system-view
[Huawei] acl 2000 
[Huawei-acl-basic-2000] rule permit 
[Huawei-acl-basic-2000] quit  
[Huawei] port-mapping ftp port 10 acl 2000
Related Topics
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 211538

Downloads: 122

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