24-Jun-2010 08:00
24-Jun-2010
11:08
- last edited on
31-May-2023
16:07
by
JimmyPackets
In the example they are asking if incoming Client IP Address is contained within any of the listed subnets, then send that traffic to a specific pool, not the one tied to the Virtual Server:
[IP::addr [IP::client_addr]]/24 equals xxx.xxx.xxx.xxx][
The Wiki Entry has some good examples: http://devcentral.f5.com/Wiki/default.aspx/iRules.IP__addr
24-Jun-2010 11:18
Aaron
24-Jun-2010 11:31
I was looking for a post from unRuleY which had more detail, but couldn't find it. I believe IP::addr does a more efficient byte comparison than you could do with a string comparison. And as Michael points out, IP::addr allows you to do CIDR comparisons that you couldn't easily do with string operations.
Aaron
Most of my comparisons are comparing client_addr or server_addr to address-type datagroups which contain both networks and hosts...is there any benefit to using [IP::addr[IP::server_addr]] or should I just save myself the characters?
24-Jun-2010 11:37
Aaron
01-Apr-2011 07:31
[IP::addr [IP::client_addr] equals xxx.xxx.xxx.0/24]
01-Apr-2011 08:32
Thanks again for all of your testing and the article for this!
Aaron