Forum Discussion
Dave_Mehlberg
Cirrus
Mar 11, 2016iRule with two data groups both using external files one working (addr) and one not (str)
I have an iRule in place that checks the IP address of an off-site host,
then it checks the IP address of the client and with a class match to see if it is contained in an external file (type addr)...
Kai_Wilke
MVP
Mar 11, 2016Hi Dave,
a datagroup entry is always a
key_name=key_value (where the value can be empty) combination and the search is always performed on the "key_names". The [class match -value] or simply [class lookup] syntax will then TCL return the key_value instead of the boolean 0 or 1 of the native [class match] syntax.
I guess your iRule isn't working correctly since you compare the reverse-dns-lookup results with the key_names
str1, str2, str3, etc. This wouldn't work unless your reverse DNS query would resolve to those strings (which I dont believe). So ,my best bet would be, that you have to flip the order or the whitelist-smtp-names datagroup, so that the FQDNs would become the key_name.
Additional Note: Also check the format of your
entries. When using external datagroups, then you don't have to specify prefixes infront of each key/value pair. key_name=key_value
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects