b_1
Aug 13, 2019Altocumulus
Sending traffic to virtual server based on client IP
I'm looking to configure an irule that will direct traffic to one of two virtual servers I have under a WideIP entry. Basically when a request comes in if it's an IP address of 1.1.1.1 I want to send that client to Virtual Server 1 and if it's an IP address of 2.2.2.2 I want to send that client over to Virtual Server 2.
I've done something similar at the LTM level before - example below.
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals CIDR/24] } {
pool testpool
}
}
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.