Product Documentation

Binding a Content Filtering Policy

Oct 31, 2013

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.

To bind a policy to a virtual server by using the command line interface

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>

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

To globally bind a policy by using the command line interface

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

Example

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

To bind a policy to a virtual server by using the configuration utility

  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.

To globally bind a policy by using the configuration utility

  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.