Forum Discussion
Ken_Wong_48678
Sep 30, 2005Historic F5 Account
limit client connection
Hi guys,
Is it possible using irule to limit number of connections from each client ip address?
If yes, pls. give me some samples how to do it. Thanks!
Regards,
Ken
unRuleY_95363
Oct 05, 2005Historic F5 Account
I think the problem with your iRule is that after doing the "reject" command, the CLIENT_CLOSED event is still evaluated. So, the active_client count is decremented even though it wasn't incremented by this connection. So, you should move the "incr ::active_client($client_ip)" line to before the check for > 5. That way the current connection will be counted and then decremented after being reset.
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