Forum Discussion
Mariusz_B
Nimbostratus
Jan 16, 2015GTM iRule - answering DNS based on some criteria.
Hi,
I need some help with developing an iRule for DNS queries.
Requirements:
check IP range a request came from (this is the easy bit which I have done already)
check monitor status -...
StephanManthey
Nacreous
Jan 20, 2015Hi Mariusz,
you can use a jump table (aka "switch") command to evaluate multiple conditions:switch [IP::remote_addr] {
"10.10.10.10" if {[LB::status vs Client_VPN_1] eq "up" } {
host 1.1.1.1
} else {
host 2.2.2.2
}
"20.20.20.20" if {[LB::status vs Client_VPN_2] eq "up" } {
host 3.3.3.3
} else {
host 4.4.4.4
}
}
I´m not aware of another shortcut to simplify the VS availability check.
Thanks, StephanHelp 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