Forum Discussion
Public GTM with private IP LTMs
All,
I have an interesting scenario, two data centers, NY with 1 GTM, 1 LTM cluster and Tokyo with no GTMs, 1 LTM cluster. I have different public IPs at each data center that are NATed to each LTM VS private IP. Since the GTM responded to DNS queries with the LTM VS private IP I wrote an iRule to respond with the Public IP address. What I would like to do is improve on the iRule so when NYC VS NYC-HTTP-VS goes down my iRule will respond with 1.1.2.10 the Tokyo public address.
NYC Data Center
Public IP 1.1.1.10 NATed to 10.10.20.5
LTM HTTP Virtual Server NYC-HTTP-VS is 10.10.20.5
LTM HTTP Pool NYC-HTTP-POOL
GTM iRule
when DNS_REQUEST {
if { [DNS::rrname] eq "www.wip.leo-d.com" } {
host 1.1.1.10
}
}
Tokyo Data Center
Public IP is 1.1.2.10 NATed to 10.10.30.5
LTM HTTP Virtual Server THY-HTTP-VS is 10.10.30.5
LTM HTTP Pool TKY-HTTP-POOL
No GTM at this site
I have looked at the Jason Rahms post on new GTM iRules and it gets me in the ball park but I still am not sure.
https://devcentral.f5.com/tech-tips/articles/v10-new-gtm-irules-commands.UQLHD-z_Fog
I also looked at Colin Walkers post and am wondering if I should handle this some how with a CNAME redirect. Bottom line I am looking to trigger an action (new host IP) on an event (VS is down (GTM Pool member is down)).
https://devcentral.f5.com/tech-tips/articles/gtm-and-irules-allowing-intelligent-redirection-for-most-protocols.UQLHeOz_Fog
Any advise appreciated!
Leo
Recent Discussions
Related Content
* 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