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.
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. |
- |
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.