Forum Discussion
Liam_Tuohey_558
Nimbostratus
Jan 17, 2006Limit http Requests from a Specific IP.
Is it possible with a IRule to limit the number of http connections to a particular VIP from a known IP Address for a particular URI?
I want to limit the number of requests or connections from:
IP (176.123.123.23) to http://www.mywebapp.com/customerapp/. I want no more then 10 sockets open between the offending IP and my web application, when the number of connections is exceeded I would like to redirect the request to an error page.
Is this type of rule possible with IRules?
-Thanks!
- Colin_Walker_12Historic F5 AccountI'm not sure this is possible on the older 4.x platform, though I know it is in 9.x. What version of BIG-IP are you running?
- Liam_Tuohey_558
Nimbostratus
We are currently running 4.5.13. We have been looking at the filter functionality, but I don't believe it will have the flexability we need. - Martin_MachacekHistoric F5 AccountLiam,
service 80 88 tcp enable service 88 timeout tcp 30 pool servers { ... } rule myweb { if(client_addr == 176.123.123.23) { redirect to "http://limited.mywebapp.com:88/" + http_uri } else { use pool servers } } rule limited_myweb { if(client_addr != 176.123.123.23) { redirect to "http://www.mywebapp.com/" + http_uri } else { use pool servers } } virtual :80 { use rule myweb } virtual :88 { limit 10 use rule limited_myweb }
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