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 vserver are evaluated only when that vserver 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 <name>@ -policyName <string> -priority <positive_integer>  
-  show lb vserver <name>  
<!--NeedCopy-->

Example:

> 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
<!--NeedCopy-->

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 (<policyName> [-priority <positive_integer>]) [-state ( ENABLED | DISABLED )]  
-  show filter global  
<!--NeedCopy-->

Example:

 bind filter global cf-pol -priority 1
 Done show filter global
1)      Policy Name: cf-pol     Priority: 1
 Done
<!--NeedCopy-->

Bind a policy to a virtual server by using the GUI

  1. Navigate to Traffic 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 click Open.
  3. In the Configure Virtual Server (Load Balancing) dialog box, select the Policies tab, and then select the check box in the Active column of the filter policy that you want to bind to the virtual server.
  4. Click OK. 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 Security > Protection Features > Filter.
  2. In the details pane, in the Policies tab, select the policy that you want to bind, and then click Global Bindings.
  3. In the Bind/Unbind Filter Policies dialog box, in the Policy Name drop-down list, select a policy, and then click Add. The policy is added to the Configured list. Note: To select multiple policies from the list, press and hold the Ctrl key, then click each policy you want.
  4. Click OK, and then click Close. 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