Forum Discussion
Greenberg
Nimbostratus
Mar 08, 2012iRule to Limit Connections from Source IP to Destination IP
Guys,
Novice to iRules brings himself before you.
I've been given a requirement to Limit the number of Connections from a number of Source Hosts to a Destination.
This ...
hoolio
Cirrostratus
Mar 09, 2012What are you actually trying to accomplish? Do you want to limit the number of connections per client per second (a rate)? Or do you want to limit the number of concurrent connections per client over a time interval? Do you want/need to send an HTTP response if a client makes an HTTP request while over the limit? Do you want to allow clients who already have established a "session" with the virtual server to be able to exceed the limit and track this with a session cookie?
You'll want to avoid using global variables as they're not CMP compatible. You'll also want to not use a static variable to track a value that changes as static variables aren't synchronized across TMMs.
https://devcentral.f5.com/wiki/iRules.CMPCompatibility.ashx
https://devcentral.f5.com/wiki/iRules.static.ashx
Aaron
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