Citrix ADC

Binding a content filtering policy

You must bind each content filtering policy to put it into effect. You can bind policies globally or to a particular virtual server. Globally bound policies are evaluated each time traffic directed to any virtual server matches the policy. Policies bound to a specific virtual server are evaluated only when that virtual server receives traffic that matches the policy.

Bind a policy to a virtual server by using the CLI

At the command prompt, type the following commands to bind a policy to a virtual server and verify the configuration:

- bind lb vserver @ -policyName  -priority  - show lb vserver  

例子:

> bind lb vserver vs-loadbal -policyName policyTwo -priority 100 Done > show lb vserver vs-loadbal 1) vs-loadbal (10.102.29.20:80) - HTTP Type: ADDRESS State: OUT OF SERVICE Last state change was at Wed Aug 19 09:05:47 2009 (+211 ms) Time since last state change: 2 days, 00:58:03.260 Effective State: DOWN Client Idle Timeout: 180 sec Down state flush: ENABLED Disable Primary Vserver On Down : DISABLED Port Rewrite : DISABLED No. of Bound Services : 0 (Total) 0 (Active) Configured Method: LEASTCONNECTION Mode: IP Persistence: NONE Vserver IP and Port insertion: OFF Push: DISABLED Push VServer: Push Multi Clients: NO Push Label Rule: none Done 

Globally bind a policy by using the CLI

At the command prompt, type the following commands to globally bind a policy and verify the configuration:

- bind filter global ( [-priority ]) [-state ( ENABLED | DISABLED )] - show filter global 

例子:

bind filter global cf-pol -priority 1 Done show filter global 1) Policy Name: cf-pol Priority: 1 Done 

Bind a policy to a virtual server by using the GUI

  1. Navigate toTraffic Management > Load Balancing > Virtual Servers.
  2. In the details pane, select the virtual server to which you want to bind the content filtering policy from the list, and clickOpen.
  3. In theConfigure Virtual Server(Load Balancing) dialog box, select thePoliciestab, and then select the check box in the Active column of the filter policy that you want to bind to the virtual server.
  4. ClickOK. The policies you have bound display a check mark and the word Yes in the Policies Bound column of the Policies tab.

Globally bind a policy by using the GUI

  1. Navigate to安全> >过滤器保护特性.
  2. In the details pane, in thePoliciestab, select the policy that you want to bind, and then clickGlobal Bindings.
  3. In the Bind/Unbind Filter Policies dialog box, in thePolicy Namedrop-down list, select a policy, and then clickAdd. The policy is added to the Configured list.

    Note

    To select multiple policies from the list, drag the Ctrl key, then click each policy you want.

  4. ClickOK, and then clickClose. The policies you have bound display a check mark and the word Yes in the Globally Bound column of the Policies tab.
Binding a content filtering policy