Forum Discussion
jonesy77_222167
Nimbostratus
Sep 16, 2015iRule to forward traffic depending on specific IP to original pool when holding pool enabled.
I'm trying to setup an iRule for when our sites are being upgraded.
I've setup holding pools that will be enabled when sites are being upgraded so end users will see just a banner site when enabled...
Stanislas_Piro2
Cumulonimbus
Sep 17, 2015Hi,
your message is not formatted... and explanation are not clear...
the better way is to give examples...
I understand that you have 7 VS with:
- 1 pool with 2 members (hosted on same 2 nodes for every VS, only port is different) named pool_test_X (X from 1 to 7)
- 1 holding pool (hosted on same 2 nodes for every VS, only port is different) named holdingpool_test_X (X from 1 to 7)
- users from IPs 222.222.222.225 and 222.222.222.226 (in data group external_ip) must be directed to pool_test_X
- All other users must be directed to holdingpool_test_X
you can use following irule:
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
if { [class match [IP::remote_addr] equals external_ip] } {
pool $default_pool
} else {
pool holding_$default_pool
}
}
With this irule, the holding pool name must be holding_
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
