if we code the irule something like this, will a number of irule reduce?
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.65.152:http
ip protocol tcp
rules myrule
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
if {[class match -- [IP::client_addr] equals xyz]} {
log local0. "client is [IP::client_addr]:[TCP::client_port], action is [class match -value [IP::client_addr] equals xyz]"
}
}
}
[root@ve1023:Active] config b class xyz list
class xyz {
{
network 172.28.19.0/24 { "action2" }
host 192.168.204.7 { "action1" }
}
}
[root@ve1023:Active] config tail -f /var/log/ltm
Nov 15 08:48:30 local/tmm info tmm[4766]: Rule myrule : client is 192.168.204.7:54379, action is action1
Nov 15 08:48:38 local/tmm info tmm[4766]: Rule myrule : client is 172.28.19.253:59039, action is action2