Cisco ASA 5505 User Manual

Page 927

Advertising
background image

44-17

Cisco ASA 5500 Series Configuration Guide using the CLI

Chapter 44 Configuring Inspection for Voice and Video Protocols

RTSP Inspection

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.

For the traffic that you identify in this class map, you can specify actions such as drop-connection and/or
log the connection 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 rtsp [match-all | match-any] class_map_name

hostname(config-cmap)#

Where 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 of the criteria. 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

c.

(Optional) To match an RTSP request method, enter the following command:

hostname(config-cmap)# match [not] request-method method

Where method is the type of method to match (announce, describe, get_parameter, options, pause,
play, record, redirect, setup, set_parameter, teardown).

d.

(Optional) To match URL filtering, enter the following command:

hostname(config-cmap)# match [not] url-filter regex {class class_name | regex_name}

Where the regex regex_name argument is the regular expression you created in

Step 1

. The class

regex_class_name is the regular expression class map you created in

Step 2

.

Step 4

To create an RTSP inspection policy map, enter the following command:

hostname(config)# policy-map type inspect rtsp policy_map_name

hostname(config-pmap)#

Where the policy_map_name is the name of the policy map. The CLI enters policy-map configuration
mode.

Step 5

(Optional) To add a description to the policy map, enter the following command:

hostname(config-pmap)# description string

Step 6

To apply actions to matching traffic, perform the following steps.

a.

Specify the traffic on which you want to perform actions using one of the following methods:

Specify the RTSP class map that you created in

Step 3

by entering the following command:

hostname(config-pmap)# class class_map_name

hostname(config-pmap-c)#

Specify traffic directly in the policy map using one of the match commands described in

Step 3

.

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.

b.

Specify the action you want to perform on the matching traffic by entering the following command:

hostname(config-pmap-c)# {[drop [send-protocol-error] |

drop-connection

[send-protocol-error]| mask | reset] [log] | rate-limit message_rate}

Advertising