Forum Discussion
Lee_Sutcliffe
Apr 16, 2019Nacreous
Hi please try this iRule and let me know how you get on, I notice you have a
"!"
on the second if condition. I assume you want this to mean not equals to
.
when HTTP_REQUEST {
set ipMatch [IP::addr 192.168.0.0/16 equals [IP::client_addr]]
switch [HTTP::host] {
"sd.informe.xx" {
if {$ipMatch} {
pool inside_pool_443
} else {
pool pool_outside_443
}
}
"sdint.informe.xx" {
if {$ipMatch} {
pool pool_inside_444
}
}
}
}