Forum Discussion
AaronMLong_1021
Cirrus
Jun 14, 2012Class Match iRule problem
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?
12 Replies
- moriarti_26889
Nimbostratus
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. - moriarti_26889
Nimbostratus
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
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