Forum Discussion
Andy_McGrath
Nov 10, 2017Cumulonimbus
If I understand correctly you need to update your iRule as follows:
when CLIENT_ACCEPTED {
if { ([class match [IP::local_addr] equals net_CPD_allow]) }{
log local0. "La IP [IP::client_addr] va al cpd --> 10.245.0.0/16"
forward
} else {
pool "bluecoat_redireccion_wifi_Any"
}
}
First use class not matchclass (old method of data group lookup) second need to use IP::local_addr if you want the F5 Virtual Server address in a clientside context like CLIENT_ACCEPTED.
NOTE: I think IP::local_addr will work as destination address for a wildcard forwarding Virtual Server but you never tried it so you will have to test.