14

Citrix NetScaler Policy Configuration and Reference Guide

Creating or Modifying an Advanced Policy

All advanced policies have some common elements. Creating an advanced policy consists, at minimum, of naming the policy and configuring a rule. The policy configuration tools for the various features have areas of overlap, but also differences. For the details of configuring a policy for a particular feature, including associating an action with the policy, see the documentation for the feature.

To create a policy, begin by determining the purpose of the policy. For example, you may want to define a policy that identifies HTTP requests for image files, or client requests that contain an SSL certificate. In addition to knowing the type of information that you want the policy to work with, you need to know the format of the data that the policy is analyzing.

Next, determine whether the policy is globally applicable, or if it pertains to a particular virtual server. Also consider the effect that the order in which your policies are evaluated (which will be determined by how you bind the policies) will have on the policy that you are about to configure.

To create an advanced policy by using the NetScaler command line

At the NetScaler command prompt, type:

add responderdnscsrewritecache policy <policyName> -rule <expression> [<feature-specific information>]

To modify an existing advanced policy by using the NetScaler command line

At the NetScaler command prompt, type:

set responderdnscsrewritecache policy <policyName> -rule <expression> [<feature-specific information>]

Advanced-Policy Parameters

Argument

Specifies

 

 

policyName

A unique name for the policy. (Cannot be changed for an

 

existing policy.)

 

Note that in the Content Switching feature, the name cannot

 

start with app_ because this is a reserved name. Policies

 

with this name are not displayed in the configuration utility.

expression

A logical expression. See “Configuring Advanced

 

Expressions: Getting Started,” on page 39.

feature-specific

Varies by feature. Includes a built-in or user-defined action

information

that you associate with the policy. See the documentation for

 

the feature to which the policy applies.

 

 

Page 28
Image 28
Citrix Systems 9.2 manual Creating or Modifying an Advanced Policy, Advanced-Policy Parameters, Argument Specifies