Forum Discussion
Robert_Owen_753
Nimbostratus
Apr 29, 2013Issue with DataGroup in iRule
BIG-IP 11.3.0 Build 3093.0 Hotfix HF4
We are trying to direct traffic for a specific path if you are a member of the datagroup. Here is the iRule :
when HTTP_REQUEST {
if { ...
Kevin_Stewart
Employee
Apr 29, 2013I'd make a few minor modifications and retest:
when HTTP_REQUEST {
log local0. "URI = [string lower [HTTP::uri]]"
log local0. "Client IP = [IP::client_addr]"
if { ( [string tolower [HTTP::uri]] starts_with "/salesentrysystem") and not ( [class match [IP::client_addr] equals SES] ) } {
pool Pool_SES_LINK
}
}
Check the logs and make sure the request URI and client IP both match your conditions. On a side note, can I assume you want to allow this pool redirect ONLY if the user requests /salesentrysystem* AND the client IP is IN the data group? If so then I would remove the not operator.
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