Forum Discussion
Jad_Tabbara__J1
Oct 28, 2017Cirrostratus
Hello Leon,
Please try the following irule, I've corrected the syntax.
when HTTP_REQUEST {
set host [string tolower [HTTP::header "Host"]]
if { $host starts_with "mous.123.com" } {
snatpool mous_SNAT
node 172.21.1.157 80
} elseif { $host starts_with "mous-anet.123.com" } {
if { ([string tolower [HTTP::uri]] equals "/cgi-bin/dfkiosk.ph") and not ([class match [IP::client_addr] equals "mouse-anetDEV-Restricted"])} {
drop
} else {
snatpool mous_SNAT
node 172.21.1.161 80
}
} elseif { $host starts_with "mousrf-anet.123.com" } {
snatpool mous_SNAT
node 172.21.1.159 80
}
}
Waiting for you feedback
Regards