Forum Discussion
iRule for directing traffic to an alternative GSLB pool based on the LDNS IP
Hi;
I have a DNS wideip with two Pools. I want to put an iRule where as if the source IP of the user's LDNS is not within subnet 10.0.0.0/8 then Pool2 is chosen. I want to bind this iRule to the wideip. Can you please suggest a syntax for this iRule.
Kindly Wasfi
2 Replies
- Stanislas_Piro2
Cumulonimbus
This irule is one I use to answer with different pool based on source address:
F5 GTM : Split dns irule
when DNS_REQUEST { if { [IP::addr [IP::remote_addr] equals 10.0.0.0/8] \ or [IP::addr [IP::remote_addr] equals 192.168.0.0/16] \ or [IP::addr [IP::remote_addr] equals 172.16.0.0/12] } { pool "[DNS::rrname]_PRIV" } }The internal pool name must be:
_PRIV - Stanislas_Piro2
Cumulonimbus
Hi,
when you created (I hope you did) the GTM listener, there is no gtm object created but a virtual server with dns profile that enable GTM and allow irule usage.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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