Forum Discussion

Qamar_Zia_13515's avatar
Qamar_Zia_13515
Icon for Nimbostratus rankNimbostratus
Mar 23, 2018

Irule for pool selection & enabling WAF

Hi Folks,

 

Can some one help me write an irule which selects pool member based upon HTTP host match and also enables the waf policy. For example two URLs are (abc.com & ), need to select the same pool member (pool1) & enable the WAF policy in the same IRULE.

 

Regards, Qamar Zia

 

4 Replies

  • Hello Qamar Zia!

    when HTTP_REQUEST {
      if { [HTTP::host] equals "abc.com" || "www.abc.com" } {
        pool 
        ASM::enabled
      }
    }
    

    Look, this is a simple one. If you'd try this, make sure you've created a pool with just one member to receive especific connections.

  • Hi Misa,

     

    Thanks for this, I always have issues with TCL syntax, always getting errors but I am working on it to learn it in detail. Please confirm why the pool with member ? in this setup F5 would be doing traffic load balance across two servers, is there any issue with that ?

     

    Regards, Qamar Zia