Forum Discussion
Jeff_124628
Nimbostratus
May 02, 2017One virtual server to many pools via iRule
Is a default pool to a virtual server required if its desired to have the traffic to the virtual server directed by an associated irule? We have a single virtual server where depending on the traffic...
P_K
Altostratus
May 02, 2017Try using this
when HTTP_REQUEST {
if { [IP::addr[IP::client_addr] equals 10.10.10.100] } {
log local0. "Client IP is [IP::client_addr], redirecting to pool_int"
pool pool_int
} else {
log local0. "client IP did not match"
pool pool_ext
}
}
If you are specifically looking to match against a range of IPs, check this link
https://devcentral.f5.com/questions/pool-redirect-based-on-source-ip-range
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
