Forum Discussion

Brijesh_Rana_27's avatar
Brijesh_Rana_27
Icon for Nimbostratus rankNimbostratus
Apr 16, 2019

Error while creating a irule

I am getting below error while creating a irule in F5 LTM. Could someone assist in this ?

 

when ACCESS_ACL_ALLOWED { if {[string tolower [HTTP::uri]] contains "/scjbos"} || {[string tolower [HTTP::uri]] contains "/biznc"} "} { pool /Common/Bizagi_QA_SCJ_Pool return } else { log local0. "packet discarded" discard } }

 

2 Replies

  • ACCESS_ACL_ALLOWED Is not a LTM event but an APM event.

     

    Replace it with HTTP_REQUEST

     

  • I think some of the braces should be replaced by parentheses. Try this:

    when HTTP_REQUEST { 
      if { ( [string tolower [HTTP::uri]] contains "/scjbos" ) || ( [string tolower [HTTP::uri]] contains "/biznc" ) } { 
        pool /Common/Bizagi_QA_SCJ_Pool 
        return 
      } else { 
        log local0. "packet discarded" 
        discard 
      } 
    }