Forum Discussion
Nicky_Lo_70982
Nimbostratus
Oct 10, 2005Limit client HTTP connections in certain period
Hi all,
I would like to limit the nummber of HTTP connections from same IP address. I found that some posts have talk about the similar stuff e.g. http://devcentral.f5.com/default.aspx?tabid=28&forumid=5&postid=1674&view=topic, but all are about the concurrent connections. As HTTP connection won't last very long time, limit TCP connections by concurrent connection doesn't work for my case.
Anyone can give me some advices on limiting HTTP connections in certain period? Is it possible to use Session? Since I am new in iRules, please show me some example. Thx.
Best Regards,
Nicky
5 Replies
- unRuleY_95363Historic F5 AccountYou would need to use the "clock" command which isn't properly supported until 9.2.
Basically, you would want to store the time of the connection in the session table (probably with a count) and then check that time when another connection comes in. You could then impose a number connections per time period restriction. You can certainly prototype this, but please wait for 9.2 before putting the "clock" command into production as it's impact has not been determined and it is not supported. - Nicky_Lo_70982
Nimbostratus
Hi unRuleY,
I have upgraded the OS to v9.2. Could you show me some examples on using "clock" command to limit the number of HTTP connections in certain period?
Thanks & Regards,
Nicky - JRahm
Admin
Is that total connections or concurrent connections that you are wanting to allow in a particular timeframe? - Nicky_Lo_70982
Nimbostratus
Hi citizen_elah,
I would like to limit the total nummber of HTTP connections from a single IP address in a particular timeframe.
Thanks,
Nicky - JRahm
Admin
Take a look at these posts, and shoot back with any questions you might have
http://devcentral.f5.com/default.aspx?tabid=28&forumid=5&postid=1990&view=topic
http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=5&postid=2169
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