ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Alexey V. Vissarionov" <gremlin@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] git.altlinux.org не доступен
Date: Sat, 19 Apr 2025 13:22:50 +0300
Message-ID: <20250419102250.GD10148@altlinux.org> (raw)
In-Reply-To: <6a774201-39c4-4616-a3cd-17c856cce6f2@basealt.ru>

Good ${greeting_time}!

On 2025-04-19 13:13:51 +0300, Anton Farygin wrote:

 >> iptables -t filter -A INPUT -i wan -p tcp --syn --dport 80 \
 >> -m recent --update --seconds 1 --hitcount 30 \
 >> -j REJECT --reject-with tcp-reset
 >> iptables -t filter -A INPUT -i wan -p tcp --syn --dport 80 \
 >> -m recent --set
 >> Да, прямо с таких параметров и начать, а потом корректировать
 >> их по мере необходимости.
 > Очень просто, но нет, так не работает. Китайские боты используют
 > крайне широкий диапазон IP адресов с pps примерно 10-15 в минуту
 > с одного адреса.

Именно так и работает: при попадании в --set адрес добавляется в
динамический список.

Есть и модуль для защиты датацентров, который умеет рубить блоки
IPv4 до /8 и IPv6 до /32, работающий в полностью прозрачном режиме
(сервер ставится в разрыв канала), но у нас не те масштабы.


-- 
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net


  reply	other threads:[~2025-04-19 10:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-18 23:16 Andrey Limachko
2025-04-18 23:26 ` Alexey V. Vissarionov
2025-04-18 23:36   ` Alexey V. Vissarionov
2025-04-19  3:07 ` Alexei Takaseev
2025-04-19  7:15   ` Alexey Shabalin
2025-04-19 10:04     ` Alexey V. Vissarionov
2025-04-19 10:13       ` Anton Farygin
2025-04-19 10:22         ` Alexey V. Vissarionov [this message]
2025-04-21  6:34           ` Anton Farygin

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=20250419102250.GD10148@altlinux.org \
    --to=gremlin@altlinux.org \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

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


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