Forum Discussion
mulhollandm_648
Nimbostratus
Nov 09, 2013how can i troubleshoot an irules logic
folks
i have an irule which calls two data groups but when i add in a third traffic stops being passed to my internet server pool
i'm asking if there is a way to trace the login of the irul...
Kevin_Stewart
Employee
Nov 11, 2013I would just add that a good rule of thumb, whenever accepting input from the client, is to normalize that input before trying to evaluate it. For string values, I'd use the [string tolower ] function and make sure the values in your data group are also lower case.
when HTTP_REQUEST {
if { [class match [string tolower [HTTP::host]] contains PROXY_VM] } {
pool PROXY_VM
} elseif { [class match [string tolower [HTTP::host]] contains GSI_LIST] } {
pool GSI_PROXY
} elseif { [class match [IP::client_addr] equals INTERNAL_IPLIST] } {
pool PROXY_VM
} else {
pool PROXY_POOL
}
}
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