iRule 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. But I would like to setup a iRule that allows our internal testers via an external IP's (data group) to connect to the main pools whilst doing business testing and the holding pages on for external clients. This rule would be active only when these holding pages are enabled.
Pool setup holdingpool_1,2,3,4,5,6,7 (7 pools in total) pool_1,2,3,4,5,6,7 (7 pools in total)
My attempt started off like this:
when CLIENT_ACCEPTED {
if { [class match [IP::remote_addr] equals external_ip] } {
pool origin_pool }
}
I've setup the data group with the our external IP's. I've seen you can use origin_pool but wasn't sure if origin_pool is the current active pools?
I'm new to iRules and F5 but was wondering if anyone had any suggestions or scripts?
Thanks in advance
Jonesy77