Forum Discussion
nick_66950
Nimbostratus
Aug 17, 2007Can't seem to call a pool using iRules
Hi,
We use the following version of BIG-IP Version BIG-IP 9.1.2 Build 40.6
We have run out of valid IP addresses so wanted to implement a way of sharing a single IP/ single virtual server for different domains that point to different pools. I hoped to do this using the following.
when HTTP_REQUEST {
log local0. "Client Connected, HTTP: [HTTP::host]"
if { [HTTP::host] equals "ads01.olas.net" } {
log local0. "chose ads01"
pool ADS-HTTP-Pool
}
if { [HTTP::host] equals "adsv2.olas.net" } {
log local0. "chose adsv2_01"
pool ADSv2_01 member 10.100.105.1 80
}
}
The IRule runs and I get the log output of "chose adsv2_01" but the passing on to the pool seems to fail. When a web browser points it takes a while to fail but gets a "The connection was reset"
Does anyone have any idea what I might be doing wrong.
- Deb_Allen_18Historic F5 AccountMember syntax for pool command is correct, and I don't see anything syntactically wrong with the rule (although I do agree with wshultz about the logical construct improvements).
LB_SELECTED will be triggered if a pool member is selected. LB_FAILED will be triggered if no pool member is selected or if the selected member fails to respond.when HTTP_REQUEST { switch [string tolower [HTTP::host]] { ads01.olas.net { log local0. "chose ads01" pool ADS-HTTP-Pool } adsv2.olas.net { log local0. "chose adsv2_01" pool ADSv2_01 member 10.100.105.1 80 } } } when LB_SELECTED { log local0. "Selected server: [LB::server]" } when LB_FAILED { log local0. "Selected server: [LB::server]" }
- nick_66950
Nimbostratus
Hi
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