Re: Hacks



On 28/02/2007 09:32, Paul Martin wrote:

# For outsiders, rate-limit and enjoy
iptables -A INPUT -p tcp -m tcp --dport ssh \
-m state --state NEW \
-m recent --hitcount 3 --seconds 180 --update -j DROP

# Allow first attempts through
iptables -A INPUT -p tcp -m tcp --dport ssh \
-m state --state NEW \
-m recent --set -j ACCEPT

depends how constant the background level of chancers are, it allows them to DoS you in your hour of need.
.