Forum Discussion
GTM response according to source ip
Hi folks,
found my answer, here is the irule working properly and most of you can provide
What this basically do is, checks the pool members availability on both Datacenters and if there is less number than desired on primary dc, it returns the ip address of the Disaster web server. If there are enough members on DC then it gives the client dns response according to the client is whether LAN or WAN user. :
when DNS_REQUEST {
if { ( [active_members DC-ITTEST] >= 1) } {
if { [IP::addr [IP::client_addr]/16 equals 192.169.0.0] } {
host 10.1.10.2
log local0 LAN USER
} else {
log local0 WAN USER
host 4.4.4.4
}
} elseif { [active_members DR-ITTEST] >= 1 } {
host 3.3.3.3
}
}
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