Forum Discussion
Sending traffic to virtual server based on client IP
- Aug 13, 2019
Hello.
You can do something like these examples
https://clouddocs.f5.com/api/irules/DNS_REQUEST.html
Also you can experimenting using split-DNS
https://support.f5.com/csp/article/K14421
KR,
Dario.
Hello.
You can do something like these examples
https://clouddocs.f5.com/api/irules/DNS_REQUEST.html
Also you can experimenting using split-DNS
https://support.f5.com/csp/article/K14421
KR,
Dario.
- b_1Aug 15, 2019Altocumulus
So i've setup a split DNS iRule however for some reason, the client IP is not being matched to the IP entries in my datagroup. I've created two datagroups to see if the name was an issue but that didnt resolve the problem. If i switch the configuration to a known working datagroup, split DNS works perfectly. Any ideas? pulling my hair out.
- Aug 15, 2019
Could you share you iRule and datagroup configuration?
KR,
Dario.
- b_1Aug 16, 2019Altocumulus
when DNS_REQUEST { if { [class match [IP::client_addr] equals datagroupname] } { pool practice-dnspool } }
- Aug 16, 2019
Lets try basic troubleshooting...
when DNS_REQUEST { log local0. "I'm receiving a new dns request and my client IP is [IP::client_addr]" if { [class match [IP::client_addr] equals datagroupname] } { log local0. "I'm inside and my client IP is [IP::client_addr]" pool practice-dnspool } }
If no messages are shown in the second step, you should check the datagroup structure. Share this command output.
tmsh list ltm data-group internal datagroupname
KR,
Dario.
Recent Discussions
Related Content
* 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