iptables firewall to protect against automated entries

Posted by Kenyana on Ask Ubuntu See other posts from Ask Ubuntu or by Kenyana
Published on 2012-12-10T22:14:33Z Indexed on 2012/12/10 23:18 UTC
Read the original article Hit count: 164

Filed under:

I am getting unusually large calls on my app. I have implemented CSRF Check over ajax and its working but am still getting so many calls. My guess is that someone has a script that is 'logged' in and making all these calls. Could someone please share a good iptables script for blocking ip's that run 10 calls to /controler/action in a second.

I am using `/sbin/iptables -A INPUT -p tcp --syn --dport $port -m connlimit --connlimit-above N -j REJECT --reject-with tcp-reset

save the changes see iptables-save man page, the following is redhat and friends specific command

service iptables save`

That is from cyberciti

© Ask Ubuntu or respective owner

Related posts about iptables