Forum Discussion

tihi_341714's avatar
tihi_341714
Icon for Nimbostratus rankNimbostratus
Nov 06, 2018
Solved

Custom error page iRule with IP address filtering

Hi,   I'm not good with writing iRules so I would like some help. :)   We have a BIG-IP device with LTM and AFM provisioned. Customer would like us to configure the following. They have a list...
  • Samir_Jha_52506's avatar
    Nov 06, 2018

    You can use LTM policy to achieve requirement.

    However iRule is also choice. Create data group

    MyIPList
    and try below iRule.

        when HTTP_REQUEST {
         if { [class match [IP::client_addr] equals MyIPList] } {
              pool alternate_pool
         } else {
              HTTP::redirect "https://[HTTP::host]/underconstruction.html"
            }
        }