SIP Inspection
(Optional) To match an URI in the SIP headers, enter the following command:
k.
hostname(config-cmap)# match [not] uri {sip | tel} length gt length
Where length is the number of bytes the URI is greater than. 0 to 65536.
Create a SIP inspection policy map, enter the following command:
Step 4
hostname(config)# policy-map type inspect sip 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.
(Optional) To add a description to the policy map, enter the following command:
Step 5
hostname(config-pmap)# description string
The string for the description can contain up to 200 characters.
Step 6
To apply actions to matching traffic, perform the following steps.
a.
(Optional) Specify the traffic on which you want to perform actions using one of the following
methods:
Specify the action you want to perform on the matching traffic by entering the following command:
b.
hostname(config-pmap-c)# {[drop | drop-connection | mask | reset] [log]}
Not all options are available for each match or class command. See the CLI help or the Catalyst
6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Command Reference for
the exact options available.
The drop keyword drops all packets that match.
The drop-connection keyword drops the packet and closes the connection.
The mask keyword masks out the matching portion of the packet.
The reset keyword drops the packet, closes the connection, and sends a TCP reset to the server
and/or client.
The log keyword, which you can use alone or with one of the other keywords, sends a system log
message.
You can specify multiple class or match commands in the policy map. For information about the order
of class and match commands, see the
page
(Optional) To configure parameters that affect the inspection engine, perform the following steps:
Step 7
a.
To enter parameters configuration mode, enter the following command:
hostname(config-pmap)# parameters
hostname(config-pmap-p)#
To enable or disable instant messaging, enter the following command. Instant messaging is enabled
b.
by default.
Catalyst 6500 Series Switch and Cisco 7600 Series Router Firewall Services Module Configuration Guide using ASDM
22-80
Specify the SIP class map that you created in
•
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
•
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.
20-7.
Chapter 22
Applying Application Layer Protocol Inspection
Step 3
by entering the following command:
"Defining Actions in an Inspection Policy Map" section on
Step
3.
OL-20748-01