Forum Discussion
icopperman_1347
Nimbostratus
Oct 01, 2013can we direct traffic based on IP address
we have two servers (srvr1, srvr2) behind a F5 load balancer.
Is it possible to write an iRule (or any other type of rule ) to direct the traffic based on IP address? Specifically, i would like...
Matt_Dierick
Employee
Oct 01, 2013For sure, you can check IP address on client side, and select a member on server side.
https://devcentral.f5.com/articles/irules-101-05-selecting-pools-pool-members-and-nodes.UksHqmRRlRQ
https://devcentral.f5.com/wiki/irules.ip__addr.ashx
Hope this help. Let me know if you do not find your syntax in the irule 😉
Small i.e with pool selection :
when CLIENT_ACCEPTED {
if { [IP::addr [IP::client_addr] equals 10.10.10.10] } {
pool my_pool
}
}
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