So I’m writing a simple dust page rule, which I want to make a few exceptions based on source address. I used to have a if/then/else nightmare in 9.4.4, so I’m not sorry to revisit the issue, but the class match syntax is still evading me, I think. Either that or there’s some other screwup in here I’m missing:
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals
"AWS_EC2"] } {
Allow Amazon EC2 nodes past DUST Page
} elseif
{ [class match [IP::client_addr] equals "Testers"] } {
Allow Testers
past DUST Page
} else {
HTTP::redirect
"URL"
}
}
My data groups are entered using the Data Group Editor in the F5 iRule Editor, under Addresses. When I access from an IP listed in my class match clauses, I still get redirected to URL. What am I screwing up?
As you are using route domains, you are going to need to list the IP in the data-group as x.x.x.x%. So in your log output from above, make sure the data-group has an entry with:
Data groups and the associated lookup commands (matchclass, class, findclass, etc) do not support route domains yet. See this thread for details and possible workarounds:
HI, we are having the same issue. I will take this workaround and move the datagroup to the common partition. Thank you very much for this temporary solution, I hope F5 guys give us a solution soon.
Well, finally there is not a real workaround here, moving the datagroup to the common partition does not make any difference. sol12301 says it very clearly, if you are not working with the default routing domain, the class command will not work