Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

IRule: Access-List

kgaigl
Cirrostratus
Cirrostratus

Hello,

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

when HTTP_REQUEST {
    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 11.22.33.44/26 and 12.13.14.15/28)

All other external access should get the maintenance-page.

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

thanks a lot.

Karl

1 ACCEPTED SOLUTION

Hi Karl,

 

Create a new datagroup.

Add private and common IP addresses.

Change datagroup name in iRule.

0691T000009jqr4QAA.png

View solution in original post

2 REPLIES 2

Hi Karl,

 

Create a new datagroup.

Add private and common IP addresses.

Change datagroup name in iRule.

0691T000009jqr4QAA.png

kgaigl
Cirrostratus
Cirrostratus

You're great!

Thanks a lot

 

Karl