Forum Discussion
AaronMLong_1021
Jun 14, 2012Cirrus
Class 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 th...
hooleylist
Jun 14, 2012Cirrostratus
Hi Aaron,
Can you add some debug logging, retest and check /var/log/ltm for the log output for a failure?
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] to [virtual name] [HTTP::host][HTTP::uri]"
if { [class match [IP::client_addr] equals AWS_EC2] } {
Allow Amazon EC2 nodes past DUST Page
log local0. "[IP::client_addr]:[TCP::client_port]: Matched AWS_EC2"
} elseif { [class match [IP::client_addr] equals Testers] } {
Allow Testers past DUST Page
log local0. "[IP::client_addr]:[TCP::client_port]: Matched Testers"
} else {
HTTP::redirect "URL"
log local0. "[IP::client_addr]:[TCP::client_port]: No match in AWS_EC2: [class get AWS_EC2] or Testers: [class get Testers]"
}
}
Aaron
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