A SERVICE OF

logo

2006 CHAPTER 131: ASPF CONFIGURATION COMMANDS
log enable
Syntax log enable
undo log enable
View ASPF policy view
Parameter None
Description Use the
log enable command to enable the session logging function of an ASPF.
Use the
undo log enable command to disable the session logging function.
By default, the session logging function is disabled.
The enhanced session logging function of an ASPF can record the information of
each connection, including the duration, source address and destination address
of the connection, the port used by the connection and number of bytes
transmitted.
Related command: display aspf all, display aspf policy, display aspf session, and display aspf
interface.
Example # Enable the session logging function of the ASPF.
<Sysname> system-view
[Sysname] aspf-policy 1
[Sysname-aspf-policy-1] log enable
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: Name of the application for port mapping Available
applications include FTP, HTTP, H.323, SMTP, and RTSP.
port-number: Port number, in the range 0 to 65535
acl-number: Basic ACL number, in the range 2000 to 2999, used to specify the
host range.
Description Use the
port-mapping command to map a port to an application layer protocol.
Use the
undo port-mapping command to remove a port mapping entry.