Forum Discussion
irule based on client IP address
Currently URL A is pointing to IP X.
All machine is using URL A to access to IP X.
Now 2 machine wanted to use URL A to go to IP Y.
Remaining machine still using URL A to point to IP X
Below irule created , will it work ?.
when DNS_REQUEST {
if { [IP::addr [IP::client_addr] equals "Machine A IP"] || [IP::addr [IP::client_addr] equals " Machine B IP"] } {
pool DR_HPNS_10.72.134.53_POOL member <Name of Member>
log "PROD detected - From IP: [IP::client_addr]"
}else {
pool pool3
}
}
it might sound a bit unkind, but try, it is the best way to see if something works.
personally i wonder if you want to use the DNS_REQUEST event as you are talking about URLs also.
- Lokesh
Nimbostratus
Above Irule is tested and working
great, thanks for letting us know
- jmm
Nimbostratus
May I ask which version of F5 DNS this was on? Thanks in advance
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