Specifications

4-17
Cisco Internet Streamer CDS 2.0-2.3 Software Configuration Guide
OL-13493-04
Chapter 4 Configuring Devices
Configuring the Service Engine
Note A domain pattern list matching an SE IP address is not supported when IP-based redirection is
enabled on the Service Router. Flash Media Streaming bypasses the rules configuration if the
request is from another SE. See the “Configuring the Service Router” section on page 4-87 for
more information about IP-based redirection.
Step 8 Click Submit to save the settings.
The maximum number of pattern lists allowed is 128.
Step 9 Associate an action with an existing pattern list.
a. Choose an action type from the Rule Type drop-down list. See Table 4-7 for a description of rule
actions.
b. In the Rule Parameters field, enter the list number of the pattern list that you want to associate with
this action.
For example, if you want to block access by any protocol to yahoo.com, then choose block from the
Rule Type drop-down list, and enter pattern-list 72 protocol all in the Rule Parameters field.
Table 4-6 Service Rules Pattern Types
Pattern Type Description Syntax
domain Matches the domain name in the URL or the host header against a
regular expression. For example, “.*ibm.*” matches any domain name
that contains the “ibm” substring. “\.foo\.com$” matches any domain
name that ends with the “.foo.com” substring.
In regular expression syntax, the dollar sign ($) metacharacter directs
that a match is made only when the pattern is found at the end of a line.
rule pattern-list list_num
domain dn_regexp
group-type Patterns can be combined by using the AND or OR function with the
group-type pattern (for example, rule pattern-list 1group-type and).
The default is OR.
rule pattern-list list-num
group-type {and | or}
header-field Request header field pattern.
Request header field patterns referer, request-line, and user-agent
are supported for the allow, block, and redirect actions. The referer
pattern is matched against the Referer header in the request, the
request-line pattern is matched against the first line of the request, and
the user-agent pattern is matched against the User-Agent header in the
request.
Note In Release 2.3, Flash Media Streaming supports the referer
header field pattern for the allow and block actions.
rule pattern-list list_num
header-field {referer ref_regexp
| request-line req_regexp |
user-agent ua_regexp}
scr-ip Matches the request’s source IP address and netmask. rule pattern-list list_num src-ip
s_ipaddress s_subnet
url-regex Matches the URL against a regular expression. The match is not case
sensitive.
rule pattern-list list_num
url-regex url_regexp
url-regsub For the rewrite and redirect actions, matches the URL against a
regular expression to form a new URL in accordance with the pattern
substitution specification. The match is not case sensitive. The valid
substitution index range is from 1 to 9.
rule pattern-list list_num
url-regsub url_regexp url_sub