* 'recent' module has stopped working?
@ 2005-08-09 3:12 larsks.14449509
2005-08-10 19:59 ` curby .
0 siblings, 1 reply; 2+ messages in thread
From: larsks.14449509 @ 2005-08-09 3:12 UTC (permalink / raw)
To: netfilter
Howdy all,
I'm using rules very much like the following to cut down on
SSH brute
force attacks against a number of servers:
iptables -A INPUT
-p tcp --dport 22 \
-m state --state NEW \
-m recent --name SSH
--set --rsource
iptables -A INPUT -p tcp --dport 22 \
-m state --state
NEW \
-m recent --name SSH --seconds 30 --hitcount 4 --update --rsource
\
-j REJECT --reject-with icmp-port-unreachable
Sometime over the
weekend, these rules stopped working on a pair of
general purpose hosts (both
running Fedora Core 3, kernel 2.6.11
[-1.35_FC3smp]). The previous, correct
behavior will match the first
rule four times before matching the second
rule. The new, broken
behavior is that any new SSH connection will immediately
match the
second rule, even if this is the first time a packet has been seen
from the given IP address.
The obvious effect of this is to completely
disable inbound SSH to
these hosts. I haven't yet been able to reboot the
boxes in question,
but I have been able to tear down the ruleset and unload
the netfilter
modules, and after putting everything back together again the
behavior remains the same.
Has anyone seen this behavior before? Just
for kicks I went ahead and
compared the MD5 checksums of the ipt_recent library
and kernel module
against a working system, and they look fine. I'm using
identical
rules on other systems without a problem, so I'm suspicious.
I could really use your help. Thanks!
-- Lars
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-10 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-09 3:12 'recent' module has stopped working? larsks.14449509
2005-08-10 19:59 ` curby .
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox