Preet_pk
Jul 12, 2022Cirrus
Whitelisting inboud subnet range in F5 using irule
Hi,
Is ther any option to whitelist inbound client subnet range via F5 irule for a VS.
Tried below irule , but highlighted underlined is not taking.
when HTTP_REQUEST {
if { [HTTP::host] contains "gree.lab.ae" } {
if { [IP::client_addr] equals "X.X.X.X/29"] } {
# log local0. "client with [IP::client_addr] on url [HTTP::host][HTTP::uri] Accepted"
} else {
drop
log local0. "client with [IP::client_addr] on url [HTTP::host][HTTP::uri] Denied"
}
}
}