ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Dmitriy Kruglikov" <dmitriy.kruglikov@gmail.com>
To: "ALT Linux Community general discussions" <community@lists.altlinux.org>
Subject: Re: [Comm] Защита от брутфорса по SSH
Date: Fri, 16 May 2008 09:32:31 +0300
Message-ID: <6c7be88d0805152332u632d01e9yc1dd17a194aaafa4@mail.gmail.com> (raw)
In-Reply-To: <9909dee80805151207s73a33988x75cbdac1b06dc0eb@mail.gmail.com>

15 мая 2008 г. 22:07 пользователь Eugine Kosenko написал:
> А что в Альтах есть аналогичного
>
> http://sshguard.sourceforge.net/
Две руки и одна голова ... Вполне достаточно ...
Если в  /etc/openssh/sshd_config написать
MaxStartups 2:70:10

а в iptables что-то типа
#
-A INPUT -p tcp -m state --state NEW --dport 22 -m recent --name sshattack --set
-A INPUT  -p tcp -m state --state ESTABLISHED --tcp-flags FIN,ACK
FIN,ACK --dport 22 -m recent --name sshattack --set
-A INPUT  -p tcp -m state --state ESTABLISHED --tcp-flags RST RST
--dport 22 -m recent --name sshattack --set
-A INPUT  -m recent --name sshattack --update --seconds 60 --hitcount
4 -m limit --limit 4/minute -j LOG --log-prefix SSH_attack:_
-A INPUT  -m recent --name sshattack --update --seconds 60 --hitcount 4 -j DROP
#
то брутфорсить будет крайне затруднительно ...

На мой взгляд, это куда как удобнее и эффективнее, чем вешать еще
одного демона или постфактум рыться в логах ...
К моменту анализа логов система может быть уже взломана :)

Но это всего лишь мое личное мнение...

-- 
Best regards,
 Dmitriy L. Kruglikov
 Dmitriy.Kruglikov_at_gmail_dot_com
 DKR6-RIPE
 DKR6-UANIC
 XMPP: Dmitriy.Kruglikov_at_gmail_dot_com

      reply	other threads:[~2008-05-16  6:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15 19:07 Eugine Kosenko
2008-05-16  6:32 ` Dmitriy Kruglikov [this message]

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=6c7be88d0805152332u632d01e9yc1dd17a194aaafa4@mail.gmail.com \
    --to=dmitriy.kruglikov@gmail.com \
    --cc=community@lists.altlinux.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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git