alex_372679
Nov 12, 2018Nimbostratus
GTM eDNS request
hello, for a GTM, i tried to have it distribute traffic "manually" using the source+destination@ as the persistence the idea is to send the source a.a.a.a and b.b.b.b and c.c.c.c to @IP.A and the non matching traffic to @IP.B
is it correct this way ?
when DNS_REQUEST {
set ldns [IP::client_addr]
log local0. "LDNS LOC: $ldns [whereis $ldns]" if { [DNS::edns0 exists] &! [catch { DNS::edns0 subnet address }] } {
set gtm_ecs_address [DNS::edns0 subnet address] set gtm_ecs_source [DNS::edns0 subnet source]
set gtm_ecs_scope [DNS::edns0 subnet scope]
set ldns $gtm_ecs_address
} if {([$gtm_ecs_address match "1.1.0.0/16"]) or ([$gtm_ecs_address match "1.2.0.0/16"]) or ([$gtm_ecs_address match "1.3.0.0/16"])}{ pool A } else { pool B } }