From: "J. Bakshi" <joydeep@infoservices.in>
To: netfilter@vger.kernel.org
Subject: ssh overflow blacklisting not working properly
Date: Mon, 29 Mar 2010 13:01:22 +0530 [thread overview]
Message-ID: <4BB0574A.2060106@infoservices.in> (raw)
Dear list,
Could some one please help me to identify the problem in my ssh overflow
blacklisting rule sets ? I already have these rule sets to prevent ssh
overflow. Please note my firewall is default DROP policy.
#---------------- ssh incoming----------------#
# NB: Block the overflow ip for 3 min
# max 3 connection per min per ip
iptables -A INPUT -p tcp -m state --state NEW --dport $SSH_PORT -m
hashlimit \
--hashlimit 3/min --hashlimit-burst 1 --hashlimit-htable-expire 180000 \
--hashlimit-mode srcip --hashlimit-name sshlimit -j ACCEPT
#----------------------------------------#
As expected connection attempt more than 3 in a min is dropped and
ensure only 3 connection per minute. But It should also block the source
IP for 3 min and this part is not working here. Could any one kindly
suggest any clue or reason behind this ?
Thanks
--
জয়দীপ বক্সী
next reply other threads:[~2010-03-29 7:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-29 7:31 J. Bakshi [this message]
2010-03-29 8:18 ` ssh overflow blacklisting not working properly Richard Horton
2010-03-29 10:51 ` J. Bakshi
2010-03-29 11:05 ` Jan Engelhardt
2010-03-29 11:22 ` J. Bakshi
2010-03-29 11:22 ` J. Bakshi
2010-03-29 11:54 ` Richard Horton
2010-03-29 15:10 ` J. Bakshi
2010-03-30 7:42 ` J. Bakshi
2010-03-30 8:23 ` Richard Horton
2010-03-30 8:52 ` J. Bakshi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BB0574A.2060106@infoservices.in \
--to=joydeep@infoservices.in \
--cc=netfilter@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox