Forum Discussion
Mayur_Sutare
Jun 01, 2020MVP
I think, iRule would be more efficient for your use case. You can create separate pool for each pool member. e.g. consider Pool1, Pool2 and Pool3.
And use below iRule,
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals Client1-IP] } {
pool Pool1
}
else if { [IP::addr [IP::client_addr] equals Client2-IP] } {
pool Pool2
}
else if { [IP::addr [IP::client_addr] equals Client3-IP] } {
pool Pool3
}
}
You need to put IP addresses of client in place of Client1-IP, Client2-IP etc. This way request from client1 will get forwarded to Pool1 (which include server1) and same way for other clients.
Hope it works!
Mayur