Forum Discussion
steve_111974
Nimbostratus
Feb 24, 2010combine irules for LB by client IP and then http hostname
Hi,
I want to LB a certain range of source IP to a particular pool, else forward all other traffic to another irule that will LB by hostname. When i apply both irules, it also go the t...
The_Bhattman
Nimbostratus
Feb 24, 2010Hi Steve,
I believe you can rewrite it to the following
when HTTP_REQUEST {
if { [matchclass [IP::client_addr] equals $::Sharepoint_SrcIP_Allowed] }{
pool sharepoint
} else {
switch -glob [HTTP::host] {
"itportal" { pool itportal }
"esportal" { pool esportal }
"mysite" { pool mysite }
"qaportal" { pool qaportal }
"sharepointssp" { pool sharepointssp }
"portal" { pool portal_sharepoint }
}
}
}
I hope this helps
Bhattman
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