Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Покотиленко Костик" <casper@meteor.dp.ua>
To: netfilter <netfilter@vger.kernel.org>
Subject: Re: Blocking all APNIC addresses vs. per-country list
Date: Mon, 26 Apr 2010 18:09:50 +0300	[thread overview]
Message-ID: <1272294590.3750.33.camel@casper.meteor.dp.ua> (raw)
In-Reply-To: <4BD5A487.3020407@plouf.fr.eu.org>

В Пнд, 26/04/2010 в 16:34 +0200, Pascal Hambourg пишет:
> Hello,
> 
> Richard Horton a écrit :
> > 
> > A better option would be to drop ssh connections if the number of
> > attempts from a single ip address exceedes an acceptable limit
> 
> Preferably the number of *failed* attempts. That's what fail2ban and the
> like do.
> 
> > can't see many legit uses for ssh where you you connect and
> > disconnect multiple times within a 1 minute window)
> 
> What about scp ?

Regarding my rules multiple sequential scp attempt will get slow, but
sftp won't.

> > This can be done using either hashlimit or the recent matches...
> 
> They don't know about failed attemps.

And this might be not needed. Fail2ban is more specific solution but
also is more complex and heavy. In my enviroment I haven't been feeling
iptables is insuficient and I need fail2ban, nevertheless, it should be
considered in other enviroments.

-- 
Покотиленко Костик <casper@meteor.dp.ua>


  parent reply	other threads:[~2010-04-26 15:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26 14:09 Blocking all APNIC addresses vs. per-country list Peter Zieseniss
2010-04-26 14:19 ` Tim Evans
2010-04-26 14:19 ` Richard Horton
2010-04-26 14:34   ` Pascal Hambourg
2010-04-26 14:51     ` Roman Fiedler
2010-04-26 15:10       ` Покотиленко Костик
2010-04-26 15:09     ` Покотиленко Костик [this message]
2010-04-26 16:14       ` Jan Engelhardt
2010-04-26 14:46 ` Покотиленко Костик
2010-04-26 15:54   ` Jan Engelhardt

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=1272294590.3750.33.camel@casper.meteor.dp.ua \
    --to=casper@meteor.dp.ua \
    --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