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...
Steve_M__153836
Nimbostratus
Sep 16, 2015I would probably go with something like this.
when CLIENT_ACCEPTED {
if { [class match [IP::remote_addr] equals external_ip] } {
pool
}
else { pool holding_pool }
}
I don't see why you would need seven different holding pools, but if you do then you'd have to get more complicated to rotate through those pools. I think it would be easier to combine all the "holding" servers into one pool.
jonesy77_222167
Nimbostratus
Sep 17, 2015Steve, thanks for the response. It seems that we can probably amalgamate them to one holding pool – a legacy setup.
Is it possible to add logic that – only when holding pool is enabled run this iRule
when CLIENT_ACCEPTED {
if { [class match [IP::remote_addr] equals external_ip] } {
pool ---- not sure if you can add multiple pools in!
}
else { pool holding_pool
}
}
Question:
Would the rule be clever enough to work out which pool to go to depending on the traffic &8211; different pools listen out on different IP address?
New to F5.
Thanks
Jonesy77
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
