View
Parameter
Description
Related command:
Example
firewall aspf
Syntax
View
Parameter
Description
Example
Any view
application-name: Name of the application to be used for port mapping Available
applications include FTP, HTTP, H.323, SMTP, and RTSP.
port-number: Port number, in the range 0 to 65535
Use the
display port-mapping
port-mapping.
# Display all the information about port mapping.
<Sysname> display port-mapping
SERVICE
PORT
-------------------------------------------------
ftp
21
smtp
25
http
80
rtsp
554
H.323
1720
http
8080
firewall aspf aspf-policy-number { inbound | outbound }
undo firewall aspf aspf-policy-number { inbound | outbound }
Interface view
aspf-policy-number: Number of the ASPF policy, in the range 1 to 99.
inbound: Applies ASPF policy to inbound packets.
outbound: Applies ASPF policy to outbound packets.
Use the
firewall aspf
specified direction of the current interface.
Use the
undo firewall aspf
applied on the specified direction of the current interface.
By default, ASPF policy is not applied on the interface.
# Apply the configured ASPF firewall policy on the outbound direction of Ethernet
1/0.
<Sysname> system-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] firewall aspf 1 outbound
command to view port mapping information.
ACL
TYPE
system defined
system defined
system defined
system defined
system defined
user
command to apply the specified ASPF policy on the
command to remove the specified ASPF policy
defined
2005