
18-4
Cisco Security Appliance Command Line Configuration Guide
OL-6721-01
Chapter 18 Using Modular Policy Framework
Defining Actions Using a Policy Map
The following example uses the access-list option to assign traffic identified by the access control entries
in the http_acl access list:
hostname(config-cmap)# match access-list http_acl
You can also use the match command to identify traffic based on IP precedence, DSCP (QoS) value,
RTP port, or tunnel group. For the complete syntax of the match command refer to the Cisco Security
Appliance Command Reference.
Step 4 To return to global configuration mode, enter the following command:
hostname(config-cmap)# exit
hostname(config)#
Class Map Example
The following is an example for the class-map command:
hostname(config)# access-list udp permit udp any any
hostname(config)# access-list tcp permit tcp any any
hostname(config)# access-list host_foo permit ip any 10.1.1.1 255.255.255.255
hostname(config)# class-map all_udp
hostname(config-cmap)# description “This class-map matches all UDP traffic”
hostname(config-cmap)# match access-list udp
hostname(config)# class-map all_tcp
hostname(config-cmap)# description “This class-map matches all TCP traffic”
hostname(config-cmap)# match access-list tcp
hostname(config)# class-map all_http
hostname(config-cmap)# description “This class-map matches all HTTP traffic”
hostname(config-cmap)# match port tcp eq http
hostname(config)# class-map to_server
hostname(config-cmap)# description “This class-map matches all traffic to server 10.1.1.1”
hostname(config-cmap)# match access-list host_foo
Defining Actions Using a Policy Map
This section describes how to use the policy-map command to associate actions with class maps, An
action is taken to protect information or resources, or to perform QoS functionality, and is typically
associated with a specific traffic class. Multiple policies may be specified in a policy map.
This section includes the following topics:
• Policy Map Procedure, page 18-5
• Policy Map Examples, page 18-6
• Restrictions, page 18-7
• Classification Policy within a Policy Map, page 18-7
Kommentare zu diesen Handbüchern