screen behind rate limited iptables and connection disconnects

Posted by Bond on Server Fault See other posts from Server Fault or by Bond
Published on 2010-11-04T09:47:22Z Indexed on 2010/12/26 16:55 UTC
Read the original article Hit count: 231

Filed under:

Take this scenario if I have rate limited the connections to 4.(i.e if you attempt 4th connection you wont be able to login for some time.) If in a minute I get disconnected 3 times while I was already logged in on the server with a screen session, will I be able to login or I need to keep quite for a minute?

-A INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 4 --name DEFAULT --rsource -j DROP
-A INPUT -i eth0 -p tcp -m tcp --dport 22 -m state --state NEW -m recent --set --name DEFAULT --rsource

© Server Fault or respective owner

Related posts about iptables