Forum Discussion
Kai_Wilke
Mar 11, 2016MVP
Hi Gill,
you may try the iRule below. It uses
[getfield]
syntax to strip route domain suffixes and generates an additional log line for further troubleshooting...
when HTTP_REQUEST {
log local0.debug "Client: [IP::client_addr] Result = [IP::addr [getfield [IP::client_addr] "%" 1] equals "10.0.0.0/24"] (boolean)"
if { [IP::addr [getfield [IP::client_addr] "%" 1] equals "10.0.0.0/24"] } then {
pool websure-pool
} else {
HTTP::respond 200 content { We are sorry, Websure is currently down for essential maintenance. }
}
}
Cheers, Kai