Forum Discussion
Greenberg
Mar 08, 2012Nimbostratus
iRule 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 ...
Greenberg
Mar 09, 2012Nimbostratus
Hi Aaron,
I want to limit the number of concurrent connections to a maximum of 100 and if 100 is reached then a HTTP 302 is sent to the 101st Connection.
Basically it's a Connection Limiting exercise to reduce load on the Internal Web Servers.
But, we want to allow connections if a specific cookie is detected in the HTTP Header.
Logically look at the rule we would want.
* When a Connection is attempted the to the Virtual Server the Rule will Apply
* Maximum Number of Connections 100
* If the Specific Cookie exists in the Header and the Maximum Connections is Greater than the Active Connections the Respond with a HTTP 302 Message which is called from a Specific Webpage and the TCP Connection is Closed.
* If the Maximum Connections are below 100 then carry on as normal.
Hope this makes sense. Like I've stated earlier, I'm not an iRule Guru in any way, shape or form.
Thanks for your Time.
Chris.
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