Hi guys
I need your help!
I have to redirect according to the scope
1.1.1. * ~ 1.1.186. * Redirects to pool A
To redirect to pool B from 1.1.186. * To 1.1.255. *
How do I use irule?
and Is it possible to specify a range using an operator?
and where can I modify data_group in ucs ? I can find location
Thanks
Hi neeeewbie,
iRule:
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 1.1.0.0/16] } {
set thirdOctet [expr { [getfield [IP::client_addr] "." 3]}]
# log local0. "ThirdOctet: $thirdOctet"
if { $thirdOctet < 186 } {
pool pool_A
} else {
pool pool_B
}
}
}
data_group location in UCS:
/config/bigip.conf