iRule to insert route and use gateway
Hi
We have a one arm F5 LTM topology where the virtual server sits in the same VLAN (subnet) as the pool members. The gateway of the VLAN is a Palo Alto firewall which connects to an upstream router. As the pool members have their gateway set to the Palo Alto they can talk out successfully.
We now have a new requirement to set up a virtual server with an ephemeral pool member which sits out in the Amazon Web Services cloud. So the pool member is actually an AWS ELB.
The health monitors are working fine so the F5 itself can route to the ELB in AWS and the client traffic makes it to the F5 as well. However client traffic never makes it to the ELB because the F5 does'nt have a route to AWS.
Our challenge is routing the return client traffic (outbound from VIP to pool member --> ELB in AWS) out of the F5. The only default route the F5 has is using the management interface.
Question is whether there is an iRule statement which can "insert this route" and "use this gateway". Alternatively if pool member = AWS insert this route / gateway.
thanks