Forum Discussion
Mayur_Sutare
Jan 13, 2021MVP
Yes it should! I tested below iRule on my lab setup and it is working fine. You can try your iRule using above IF Statement and test.
when HTTP_REQUEST {
if {([HTTP::host] contains "test") && ([class match [IP::client_addr] equals Allow-List])} {
pool TEST-Pool
log local0. "Allowed client IP is [IP::client_addr]"
} else {
log local0. "Dropped IP is [IP::client_addr]"
}
}
Hope it helps!