13-11
Cisco ASA Series Firewall CLI Configuration Guide
Chapter 13 Inspection of Basic Internet Protocols
FTP Inspection
For the traffic that you identify in this class map, you specify actions to take on the traffic in the
inspection policy map.
If you want to perform different actions for each
match
command, you should identify the traffic directly
in the policy map.
a.
Create the class map by entering the following command:
hostname(config)#
class-map type
inspect ftp
[
match-all
|
match-any
]
class_map_name
hostname(config-cmap)#
Where
the class_map_name
is the name of the class map. The
match-all
keyword is the default, and
specifies that traffic must match all criteria to match the class map. The match-any keyword
specifies that the traffic matches the class map if it matches at least one
match
statement. The CLI
enters class-map configuration mode, where you can enter one or more
match
commands.
b.
(Optional) To add a description to the class map, enter the following command:
hostname(config-cmap)#
description
string
Where
string
is the description of the class map (up to 200 characters).
c.
Specify the traffic on which you want to perform actions using one of the following
match
commands. If you use a
match not
command, then any traffic that does not match the criterion in
the
match not
command has the action applied.
•
match
[
not
]
filename regex
{
regex_name
|
class
class_name
}—Matches the filename in the
FTP transfer against the specified regular expression or regular expression class.
•
match
[
not
]
filetype regex
{
regex_name
|
class
class_name
}—Matches the file type in the FTP
transfer against the specified regular expression or regular expression class.
•
match
[
not
]
request-command
ftp_command
[
ftp_command
...]—Matches the FTP command,
one or more of the following:
APPE
—Append to a file.
CDUP
—Changes to the parent directory of the current working directory.
DELE
—Delete a file on the server.
GET
—Gets a file from the server.
HELP
—Provides help information.
MKD
—Makes a directory on the server.
PUT
—Sends a file to the server.
RMD
—Deletes a directory on the server.
RNFR
—Specifies the “rename-from” filename.
RNTO
—Specifies the “rename-to” filename.
SITE
—Used to specify a server-specific command. This is usually used for remote
administration.
STOU
—Stores a file using a unique file name.
•
match
[
not
]
server regex
{
regex_name
|
class
class_name
}—Matches the FTP server name
against the specified regular expression or regular expression class.
•
match
[
not
]
username regex
{
regex_name
|
class
class_name
}—Matches the FTP username
against the specified regular expression or regular expression class.
d.
Enter
exit
to leave class map configuration mode.
Содержание ASA 5508-X
Страница 11: ...P A R T 1 Access Control ...
Страница 12: ......
Страница 60: ...4 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 4 Access Rules History for Access Rules ...
Страница 157: ...P A R T 2 Network Address Translation ...
Страница 158: ......
Страница 204: ...9 46 Cisco ASA Series Firewall CLI Configuration Guide Chapter 9 Network Address Translation NAT History for NAT ...
Страница 232: ...10 28 Cisco ASA Series Firewall CLI Configuration Guide Chapter 10 NAT Examples and Reference DNS and NAT ...
Страница 233: ...P A R T 3 Service Policies and Application Inspection ...
Страница 234: ......
Страница 379: ...P A R T 4 Connection Management and Threat Detection ...
Страница 380: ......
Страница 400: ...16 20 Cisco ASA Series Firewall CLI Configuration Guide Chapter 16 Connection Settings History for Connection Settings ...
Страница 414: ...17 14 Cisco ASA Series Firewall CLI Configuration Guide Chapter 17 Quality of Service History for QoS ...