Forum Discussion

kgaigl's avatar
Icon for Cirrocumulus rankCirrocumulus
Nov 25, 2020

IRule: Access-List


we've got on a VS with ASM-Policy a IRule, that activates for external access only a maintenance-page, it looks like this:

    if {!([class match [IP::client_addr] equals private_net])} {
    switch [HTTP::uri] {

    "/mylogo-bvk.png" {HTTP::respond 200 content [ifile get "mylogo-bvk.png"]}

    default {HTTP::respond 200 content {

(thanks to the community!)

Now there should take place a pen-test of an external consultant, and I've got to add there IP-Ranges (like and

All other external access should get the maintenance-page.

Could you give me some help, how to insert ip-range?

thanks a lot.


  • Hi Karl,


    Create a new datagroup.

    Add private and common IP addresses.

    Change datagroup name in iRule.