
20-11
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide using ASDM
OL-20748-01
Chapter 20 Using Modular Policy Framework
Configuring Special Actions for Application Inspections (Inspection Policy Map)
Where the
application
is the application you want to inspect. For supported applications, see the CLI
help for a list of supported applications or see
Chapter 22, “Applying Application Layer Protocol
Inspection.”
The
class_map_name
argument
is the name of the class map up to 40 characters in length.
The
match-all
keyword is the default, and specifies that traffic must match all criteria to match the class
map.
The CLI enters class-map configuration mode, where you can enter one or more
match
commands.
Step 3
(Optional) To add a description to the class map, enter the following command:
hostname(config-cmap)#
description
string
Step 4
Define the traffic to include in the class by entering one or more
match
commands available for your
application.
To specify traffic that should not match the class map, use the
match not
command. For example, if the
match not
command specifies the string “example.com,” then any traffic that includes “example.com”
does not match the class map.
To see the
match
commands available for each application, see
Chapter 22, “Applying Application
Layer Protocol Inspection.”
The following example creates an HTTP class map that must match all criteria:
hostname(config-cmap)#
class-map type inspect http match-all http-traffic
hostname(config-cmap)#
match req-resp content-type mismatch
hostname(config-cmap)#
match request body length gt 1000
hostname(config-cmap)#
match not request uri regex class URLs
Creating a Regular Expression
A regular expression matches text strings either literally as an exact string, or by using
metacharacters
so you can match multiple variants of a text string. You can use a regular expression to match the content
of certain application traffic; for example, you can match a URL string inside an HTTP packet.
Use
Ctrl+V
to escape all of the special characters in the CLI, such as question mark (?) or a tab. For
example, type
d[Ctrl+V]g
to enter
d?g
in the configuration.
See the
regex
command in the
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall
Services Module Command Reference
for performance impact information when matching a regular
expression to packets.
Note
As an optimization, the FWSM searches on the deobfuscated URL. Deobfuscation compresses multiple
forward slashes (/) into a single slash. For strings that commonly use double slashes, like “http://”, be
sure to search for “http:/” instead.
Table 20-1
lists the metacharacters that have special meanings.
Содержание 6500 - Catalyst Series 10 Gigabit EN Interface Module Expansion
Страница 35: ...P A R T 1 Getting Started and General Information ...
Страница 36: ......
Страница 297: ...P A R T 2 Configuring the Security Policy ...
Страница 298: ......
Страница 521: ...P A R T 3 System Administration ...
Страница 522: ......
Страница 613: ...P A R T 4 Reference ...
Страница 614: ......