iRule for using SNAT and Next-Hop for specific pool member only
I have a unique situation that I believe could be solved with an iRule, but I need some help.
We have two DMZ's - Production and DR. Each DMZ has an F5 LTM. In each DMZ we are setting up Google Proxy appliances. What is unique is that we want the failover to be as seemless as possible in the event of an appliance failure. Our original idea was to use Priority Group Activation and put both the Prod Google Appliance and the DR Google Appliance (one in each DMZ), in each pool for the Google Search VIP's (DR and Prod). The local appliance has the LTM as it's default gateway, so it doesn't require a SNAT. The remote appliance, of course, does not and will require a SNAT. Also we need to tell the F5 where to send the traffic for the next hop if the remote appliance is chosen in the pool.
We want to apply a SNAT and directions for the next-hop, if the remote appliance is chosen in the pool. Can anyone offer any guidance in writting this iRule? Are we approaching this with the right idea, is an iRule the right way to solve this? Any help appreciated.