Forum Discussion
ChrisS_DevOps_2
Nimbostratus
Jun 05, 2015Irule to select a pool member that's not the same as the requesting client's ip
We have pool members that will make http requests to vips with pools the requester could itself be a member of
I need a quick irule to make sure that if a server's http request cannot be routed ...
JRahm
Admin
Jun 05, 2015if you just want a client can't be server rule, that shouldn't be too challenging:
when LB_SELECTED {
if { [IP::client_addr] == [IP::server_addr] }
LB::detach
LB::reselect
}
}
You might want to add an escape after X number of attempts to prevent a loop in the event the same member keeps getting selected.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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