Forum Discussion
Wasfi_182818
Altostratus
Aug 23, 2016iRule 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...
Stanislas_Piro2
Cumulonimbus
Aug 23, 2016This 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:
_PRIVHelp guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects