Forum Discussion
fab_catalano_10
Nimbostratus
May 07, 2009GTM iRule - status check
I want to be able to resolve to a WideIP based on what IP network the request originated from.
I have been able to do this but now i would like to add a check to see if that pool is a...
The_Bhattman
Nimbostratus
May 10, 2009How about the following
when DNS_REQUEST {
if {([IP::addr [IP::remote_addr]/22 equals 10.92.80.0/22]) and ([active_members mtgdc.mortgagesvcs] < 0)}{
host 10.92.36.110
} elseif { ([IP::addr [IP::remote_addr]/22 equals 10.92.80.0/22]) and ([active_members mtgdc.mortgagesvcs ] == 0)}{
host 10.92.40.110
} elseif {[IP::addr [IP::remote_addr]/22 equals 10.92.200.0/22] }{
host 10.92.36.110
} elseif {[IP::addr [IP::remote_addr]/22 equals 10.92.48.0/22] }{
host 10.92.40.110
}
}
Hope this helps
CB
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