ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Sergey <a_s_y@sama.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Защита от DDOS
Date: Tue, 10 Apr 2007 11:49:54 +0500
Message-ID: <200704101149.54117.a_s_y@sama.ru> (raw)
In-Reply-To: <461B2FFD.9020601@tangramltd.com>

On Tuesday 10 April 2007, Slava Dubrovskiy wrote:

> Вот и нас накрыло :-) .
> В связи с этим задумались про защиту. Расскажите, кто как защищается?
> Вот пока выбираю между:
> 1. mod_evasive
> 2. mod_security
> 3. snort

Я, в похожей ситуации, поступил просто:

for RULE in `netstat -an|grep -v unix| \
    sed -e "s/^.*:80 *\(.*\):\(.*\)/-A INPUT -s \1 -j DROP/"| \
    sort|uniq -c|sort -n|egrep "[0-9]{3,7} -A"|sed -e "s/ /_/g"`; do

    echo $RULE

    RULE_R=`echo $RULE|sed -e "s/_/ /g"|sed -e "s/^.*\(-A .*\)/iptables \1/"`

    echo $RULE_R

    `$RULE_R`
done

То есть, если число коннектов трёхзначное, IP в drop. И в крон.

А, вообще, 
http://lists.altlinux.org/pipermail/devel-kernel/2007-January/006308.html

Но ни я сам не занялся, не поддержал никто.

-- 
С уважением, Сергей
a_s_y@sama.ru


  reply	other threads:[~2007-04-10  6:49 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-10  6:34 Slava Dubrovskiy
2007-04-10  6:49 ` Sergey [this message]
2007-04-10  6:57   ` Slava Dubrovskiy
2007-04-10  7:01     ` Avramenko Andrew
2007-04-10  9:59     ` Sergey
2007-04-10  6:56 ` Avramenko Andrew
2007-04-10  8:31 ` Michael Shigorin
2007-04-11 14:47 ` Nick Gavrikov
2007-04-12  9:21   ` Денис Смирнов
2007-04-12 11:42     ` Slava Dubrovskiy
2007-04-12 12:03       ` Денис Смирнов
2007-04-12 12:14     ` Dmitry V. Levin
2007-04-12 13:22       ` Денис Смирнов
2007-04-12 15:28         ` Nick Gavrikov
2007-04-12 15:54           ` Денис Смирнов
2007-04-12 18:40             ` Konstantin A. Lepikhov
2007-04-12 18:48               ` Nick Gavrikov
2007-04-12 19:57                 ` Денис Смирнов
2007-04-13 12:12         ` Sergey
2007-04-13 15:41           ` Денис Смирнов
2007-04-13 16:16             ` Peter Evdokimov
2007-04-13 16:28               ` Денис Смирнов
2007-04-16  4:50                 ` Sergey

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=200704101149.54117.a_s_y@sama.ru \
    --to=a_s_y@sama.ru \
    --cc=sysadmins@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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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