Forum Discussion
Maneesh_72711
Cirrostratus
Mar 11, 2018Displaying Client and Server Side connections via i-rule
I am trying to write an i-rule which gives my application users to see which user landed on which server. Got four pool members and below is what I have written.
when CLIENT_ACCEPTED {
table incr...
Only1masterbla1
Cirrus
Mar 11, 2018You should use LB::server addr and create connection table with IP::client_addr & LB selected server together. Of course, if there is a proxy before F5, you may not see the real client IP.
https://devcentral.f5.com/wiki/iRules.LB__server.ashx Returns the IP address of the currently selected pool member. If no server was selected yet or all servers are down, returns null.
You can extend connection table further with and info.
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