Forum Discussion
bchick2_8645
Nov 21, 2011Nimbostratus
Limit Client Connections with Table
We have been using (verbatim) the iRule given on the Wiki at Click Here to successfully limit the number of concurrent connections from a single source IP address. However, we recently learned the us...
bchick2_8645
Nov 29, 2011Nimbostratus
Okay, I guess that makes sense. If that's the case then the iRule from the Wiki entry that I linked in my original post would have the same problem since it also relies on the CLIENT_CLOSED event to decrement the count. So based on the example in the link posted by spark it looks like I would have to modify my iRule to have a separate table for each client IP address and use the client port as the key and then look at how many keys are in the table to determine the number of clients from that IP. Then rather than decrementing a count I just remove the key when the CLIENT_CLOSED event fires or otherwise rely on the timer to clear it.
I still need to read through that a little more to make sure I'm not missing anything but is that the basic idea that you're suggesting?
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