Forum Discussion

securityworkerbb's avatar
securityworkerbb
Icon for Nimbostratus rankNimbostratus
Nov 23, 2024

301 redirect and waf policy log problem

Hi everybody and good works.

First of all, let me explain my need. According to the setup, abc.com needs to be answered by F5 and it will redirect to www.abc.com with 301. Because www.abc.com domain is answered by a different mechanism. I solved this situation with the irule below. However, in this case, logs are not coming to my waf policy, how can I solve this? 

There is no problem with my waf policy and log profile definitions.

 

when HTTP_REQUEST {
   
     HTTP::respond 301 Location "https://www.abc.com"

}

  • Hi securityworkerbb.

    this is because the iRule event HTTP_REQUEST is executed before WAF processing. AWAF will never process the request, therefore it won't log anything.

    See also here: iRule Event Order Flowchart.

    KR
    Daniel