202 Citrix NetScaler Policy Configuration and Reference Guide
For Filter, SureConnect, and Priority Queuing, expand Protection
Features, click the appropriate function, and then select the Policies
tab.
For the Access Gateway, expand Access Gateway, expand Policies,
select the appropriate function, and then select the Policies tab.
3. For most features, click the Add button.
4. In the Policy Name or Name text box, enter a name for the policy.
You must begin a policy name with a letter or underscore. A policy name
can consist of 1 to 127 characters, including letters, numbers, hyphen (-),
period (.), pound sign (#), space ( ), and underscore (_).
5. For most policies, you associate an action or a profile. In the Action list box
click the name of an action, or, in the case of an Access Gateway or
Application Firewall policy, select a profile to associate with this policy. A
profile is a set of configuration options that operate as a set of actions that
are applied when the data being analyzed matches the policy rule.
For information on creating a profile, see “Configuring Policies and
Profiles on the Access Gateway” at http://edocs.citrix.com/ or the Citrix
Application Firewall Guide.
6. Create an expression that describes the type of data that you want this
policy to match.
Depending on the type of policy you wish to create, you can choose a
predefined expression, or you can create a new expression. For information
on how to create an expression for most types of classic policies, see “To
configure an expression in a classic policy using the configuration utility,”
on page 204.
Named expressions are predefined expressions that you can reference by
name in a policy rule. For more information on named expressions, see
“Creating Named Classic Expressions,” on page 209. For a list of all the
default named expressions and a definition of each, see “Expressions
Reference,” on page 211.
7. Click Create to create your new policy.
Your new policy is created and appears in the Policies page list.
8. Click Close to return to the Policies screen for the type of policy you were
creating.
To create a classic policy using the NetScaler command line
1. At the command line, type:
add feature policy name -rule expression -action action