Войти в систему

Home
    - Создать дневник
    - Написать в дневник
       - Подробный режим

LJ.Rossia.org
    - Новости сайта
    - Общие настройки
    - Sitemap
    - Оплата
    - ljr-fif

Редактировать...
    - Настройки
    - Список друзей
    - Дневник
    - Картинки
    - Пароль
    - Вид дневника

Сообщества

Настроить S2

Помощь
    - Забыли пароль?
    - FAQ
    - Тех. поддержка



Пишет Misha Verbitsky ([info]tiphareth)
@ 2007-06-03 17:00:00


Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Настроение: sick
Музыка:Assemblage 23 - CONTEMPT
Entry tags:fascism, lj, ljr, putin

соображения по технологиям ДОС-атак
[info]ru_nbp@lj закрыт Abuse, а равно и [info]ru_nazbol@lj.
Партийцы, уважаемые, перебрались к нам.

Можно заключать пари, когда LJR настанет пиздец, и
каким именно образом. К счастью, у нас уже есть запасной сервер,
совершенно убийственных достоинств. Но что-то делать надо.

Если у вас есть соображения по технологиям ДОС-атак,
которыми валят LJ, и как с ними бороться, расскажите
пожалуйста.

Привет



(Читать комментарии) - (Добавить комментарий)


[info]tiphareth
2007-06-06 17:40 (ссылка)
>Я посмотрел (по диагонали, если честно). По-моему, все
>таки нету.

Вот например
http://www.debian-administration.org/articles/187

iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent \
--set

iptables -I INPUT -p tcp --dport 22 -i eth0 -m state --state NEW -m recent \
--update --seconds 60 --hitcount 4 -j DROP

The second rule is where the magic actually happens. The
--update flag tests whether the IP address is in the list
of recent connections, in our case each new connection on
port 22 will be in the list because we used the --set flag
to add it in the preceeding rule.

Once that's done the --seconds flag is used to make sure
that the IP address is only going to match if the last
connection was within the timeframe given. The --hitcount
flag works in a similar way - matching only if the given
count of connection attempts is greater than or equal to
the number given.

Together the second line will DROP an incoming connection if:

* The IP address which initiated the connection has
previously been added to the list and
* The IP address has sent a packet in the past 60 seconds and
* The IP address has sent more than 4 packets in total.

Такие дела
Миша

(Ответить) (Уровень выше)


(Читать комментарии) -