Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 

GTM forwarded selection based on client IP.

Nikson_M
Cirrus
Cirrus

Folks,

We have our GTM devices answering queries for the domain names configured on those devices. However, the domain names that are not configured on the GTM, the GTM simply forwards it to the internal DNS servers.

 

Now, we have a cluster of DNS servers internally. i.e. cluster01, cluster02 etc.

As of today we only have cluster01 configured on the GTM.

 

My request is GTM should do forwarding to these DNS forwarding based on the incoming source IP.

i.e. if the source IP is 1.1.1.0 /24 forward the query to cluster01, if the source IP is 2.2.2.0/24 forward that to cluster02, if the source IP is 3.3.3.0/24 forward that to cluster03.

 

However, the GTM should still resolve the IP's for the domain names that are configured on the GTM.

 

Any help?

 

much thanks,

Nik

1 REPLY 1

PeteWhite
F5 Employee
F5 Employee

You can easily add an iRule to the listener to send to whichever pool or server you wish

when DNS_REQUEST {
   if { [ IP::addr [IP::client_addr]/32 equals 1.1.1.1/24] } {
       pool xyz
   }
}