Can anyone confirm if this iRule will work I am newbie to anything Big-IP. I am pulling what I can find here.
1 when CLIENT_ACCEPTED {
2 if { [IP::addr [IP::client_addr] equals 10.205.0.0/16] } {
3 pool MCGTWebSSL
4 } else {pool Default_Pool}
5 }
Can anyone confirm if this iRule will work I am newbie to anything Big-IP. I am pulling what I can find here.
1 when CLIENT_ACCEPTED {
2 if { [IP::addr [IP::client_addr] equals 10.205.0.0/16] } {
3 pool MCGTWebSSL
4 } else {pool Default_Pool}
5 }
My recommendation to use Local Traffic Policies
iRule looks good to me, it should work.
Mayur
Thank You
Please provide insight as to why using local traffic policies is a better solution that iRules? I have 150 subnets I need to create rules for.
I need to add additional subnets to my iRule. Do I just copy and paste multiple instances of the rule I posted earlier. So just a repeat of lines 1-5 for each subnet or is there a better way? All subnets will be sent to the same pool and default_Pool.
May be use data group list?