Forum Discussion
F5user13_129592
Nimbostratus
Jun 03, 2018iRULE execution order with data groups
Hello,
I have an iRULE like the one below, what would be the outcome if user with ip 192.168.168.168 accessed http://testserver2.abc.com
when HTTP_REQUEST{
switch -glob[string tolower [HTTP...
youssef1
Cumulonimbus
Jun 04, 2018Hi,
First of you have this condition:
switch -glob [string tolower [HTTP:host]]{
testserver1.abc.com{pool testserver1}
testserver2.abc.com {pool testserver2}
}
Depending the hostname that you enter, you will FW to a specific pool
- if hostname is testserver1.abc.com, you will forward to pool testserver1
- if hostname is testserver2.abc.com, you will forward to pool testserver3
Then you have an additional condition:
if { [class match [IP:client_addr] equals external_users]} {
pool testserver3
}
If you source IP is contain in the DG external_users as it happens "192.168.168.0/24" you will forward to pool testserver3.
In your case you enter the followin url http://testserver2.abc.com with source IP 192.168.168.168.
- So you will match first condition an your pool is set to testserver2
- but you match second condition due to your source IP and your pool it is finally configured to testserver3
Regards
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
