Citrix Systems Network Router 9.2 User Manual

Page of 302
206
Citrix NetScaler Policy Configuration and Reference Guide
field and the header type for which you want to match the string in the 
Header Name text box.
7.
Click OK.
8.
To create a compound expression, click Add. Note that the type of 
compounding that is done depends on the following choices on the Create 
Policy dialog box:
Match Any Expression. The expressions are in a logical OR 
relationship.
Match All Expressions. The expressions are in a logical AND 
relationship.
Tabular Expressions. Click the ANDOR, and parentheses buttons 
to control evaluation.
Advanced Free-Form. Enter the expressions components directly in 
the Expression field, and click the ANDOR, and parentheses 
buttons to control evaluation.
To create a classic policy expression using the NetScaler command line
1.
Start the policy as described in 
add feature policy name -rule expression -action action
2.
For expression, substitute a classic expression that defines the 
connections you want to match using this policy. This regular expression 
can take many forms, but all follow this syntax:
"<flow 
type>.<protocol>.<qualifier>.<operator>[.<value>][.<header 
name>]"
Note:
All rules must be enclosed in double quotes.
For each of the designated elements, you substitute the appropriate value. 
The following list describes each element and provides the right values or 
explains how to determine what they are:
Flow type. Whether the policy filters requests or responses.
The flow type can be either REQ or RES for Access Gateway or SSL 
policies. For Application Firewall policies, it is always REQ, because 
the Application Firewall filters each request and its associated 
response as a unit.