From: Thomas S. <tho...@my...> - 2007-07-20 09:42:03
|
Hi there, I'm thinking of using fail2ban to solve something I did different up to now :). In my php-application I'm running some DoS protection which just tracks how many requests an ip-address did in the last X seconds and based on that it blocks ip-addresses with too many requests. Up to now I did this with setting a .htaccess to deny access to these ips together with giving them nice error-pages. I think I could do this nicely with fail2ban beside that I don't know how the action should be done. For the filter I could just write to a file when/which ip-address should be banned and create a rule that an ip should be banned by its first appearance in that file. Now, is there a way to do a redirection to a different port or ip by iptables for http-requests? Anyone having the actions for that? Thanks in advance, Thomas |