From: Michael Shigorin <mike@osdn.org.ua>
To: community@lists.altlinux.org
Subject: Re: [Comm] Число подключений с одного IP
Date: Fri, 13 Oct 2006 01:18:41 +0300
Message-ID: <20061012221841.GG17369@osdn.org.ua> (raw)
In-Reply-To: <bf3ff7bc0610121426m1f8d7769n6fa92d103c340a29@mail.gmail.com>
On Fri, Oct 13, 2006 at 12:26:33AM +0300, Kaydannik Axel wrote:
> Господа, поздравте. У моего мелокго проектика появились
> недоброжелатели в виде досеров. И досрали они до немагу.
> Боевая задача - ограничить число подключений к определенному
> порту с одно IP Гуглинье уткнуло в пач-о-матик для айпитеблс.
> Есть ли что нибудь более приемлимое и обсиифленное?
> Что посоветуете ? Кто сталкивался?
Про сизиф спрошать в sisyphus@, про iptables -- в sysadmins@.
С pom у нас был прецедент во времена 2.0, с тех пор все сыты...
Вообще чего-нить вроде просто такого -- не хватит?
-A INPUT -s 127.0.0.1 -d 127.0.0.1 -j ACCEPT
-A INPUT -s 127.0.0.1 -d $LAN -j ACCEPT
-A INPUT -p tcp -m tcp --tcp-flags SYN,RST,ACK SYN -j syn-flood
-A INPUT -p icmp -j icmp-flood
-A INPUT -j bad-packets
-A icmp-flood -p icmp -m icmp --icmp-type 8 -m limit --limit 5/s --limit-burst 25 -j ACCEPT
-A icmp-flood -p icmp -m icmp --icmp-type 8 -j DROP
-A syn-flood -m limit --limit 10/sec --limit-burst 50 -j RETURN
-A syn-flood -j DROP
-A bad-packets -m state --state INVALID -j DROP
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
prev parent reply other threads:[~2006-10-12 22:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-12 21:26 Kaydannik Axel
2006-10-12 22:18 ` Michael Shigorin [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=20061012221841.GG17369@osdn.org.ua \
--to=mike@osdn.org.ua \
--cc=community@lists.altlinux.org \
--cc=shigorin@gmail.com \
/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