Forum Discussion
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...
- 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.
Snl
Aug 14, 2019Cirrostratus
sample irule with datagroup
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals datagroup1] } {
pool pool1
log local0. "[IP::client_addr] is 1"
} elseif { [class match [IP::client_addr] equals datagroup2] } {
pool pool2
log local0. "[IP::client_addr] is 2"
} else {
pool pool3
log local0. "[IP::client_addr] is 3"
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects