Command Reference Guide
3Com Router 3000 Ethernet Family
Command Reference Guide
Chapter 4 Firewall Configuration Commands
3Com Corporation
4-17
Related command: display aspf all, display aspf policy, display aspf session,
display aspf interface.
Example
# Enable ASPF session logging function.
[3Com-aspf-policy-1] log enable
4.2.12 port-mapping
Syntax
port-mapping application-name port port-number [ acl acl-number ]
undo port-mapping [ application-name port port-number [ acl acl-number ] ]
View
System view
Parameter
application-name: Specifies the name of the application for PAM. Optional applications
include ftp, http, h323, smtp and rtsp.
port-number: Port number, ranging from 0 to 65535.
acl-number: Number of basic ACL, which is in the range from 2000 to 2999.
Description
Use the port-mapping command to establish a mapping from the port to application
layer protocol.
Use the undo port-mapping command to delete the PAM ingress defined by the user.
PAM supports two mapping mechanisms: general port mapping and host port mapping
based on basic ACL. The former is to establish the mapping relation between a
user-defined port number and an application protocol. For example, mapping the port
8080 to the HTTP will make all the TCP packets destined to 8080 be regarded as HTTP
packets. The latter is to map the self-defined port number to the application protocol for
the packets from some specific hosts. For example, you can map the TCP packets
using the port 8080, which destine to the hosts residing on the segment 1.1.0.0 to be
the HTTP packets. The range of hosts will be specified by the basic ACL.
Related command: display port-mapping.
Example
# Map port 3456 to FTP service, with this configuration, all the data flows destined to
port 3456 will be regarded as FTP data flows.
[3Com] port-mapping ftp port 3456










