Forum Discussion
Mariusz_B
Jan 20, 2015Nimbostratus
Hi Brad,
I have now developed this:
when DNS_REQUEST {
if { [IP::addr [IP::remote_addr] equals $::All_Client_IPs] } {
if {[LB::status vs Client_VPN_1] eq "up" } {
host 1.1.1.1
} else {
host 2.2.2.2
}
}
}
but it doesn't work. Looks like is not possible to use data groups from the GSLB level.
I have successfully tested this instead:
when DNS_REQUEST {
if { [IP::addr [IP::remote_addr] equals 10.10.10.10] } {
if {[LB::status vs Client_VPN_1] eq "up" } {
host 1.1.1.1
} else {
host 2.2.2.2
}
}
}
it's ok, but bit painful to use multiple "or" statements for multiple network ranges/IPs
Is there any workaround for that?
Many thanks
Mariusz