Big-ip4 to 9 Migration

Hi, I need to comvert this rule from version 4 to 9

{ if (client_addr == 172.16.30.248 or client_addr == 172.16.100.10 or client_addr == 172.16.30.251 or client_addr == 172.16.100.12 or client_addr == 172.16.30.15 or client_addr == 172.16.31.244 or client_addr == 172.16.31.242 or client_addr == 172.16.30.17 or client_addr == 172.16.30.18) { use pool server1}

else { discard}

}

I am do it in this way but I do know how may I add more IP addr.

when CLIENT_ACCEPTED {

if { [[IP::local_addr] equals 172.16.30.248]} {

pool Server_1

} else {

discard

}

}

Thanks in advance

Hi,

Check the post below for an example. If you wanted to handle disallowed requests more gracefully, you could respond with a redirect or HTML content using HTTP::respond.

Limited Access to VIP by Source IP (Click here)

Aaron

Hi

Aron, Many thanks, I will check it, I will let you know if it works.

Frank