[Comm] ktorrent & логи

Michael Shigorin mike на osdn.org.ua
Сб Сен 19 11:20:11 UTC 2009


On Wed, Sep 16, 2009 at 09:11:33PM +0600, Denis Nazarov wrote:
> Наблюдаю в /var/log/messages следующее
> localhost kernel: possible SYN flooding on port 52722. Sending cookies.
> и так много-много раз. На этом порту сидит ktorrent на раздаче,
> подозреваю, что система так реагирует на подключения трекера.
> Насколько это страшно и можно ли отучить систему реагировать?

Например, net.ipv4.tcp_max_syn_backlog = 1024 в /etc/sysctl.conf

> И какие куки и куда кернел отсылает?

Боевые, на потенциального супостата. :]

---
tcp_syncookies - BOOLEAN
        Only valid when the kernel was compiled with CONFIG_SYNCOOKIES
        Send out syncookies when the syn backlog queue of a socket
        overflows. This is to prevent against the common 'SYN flood attack'
        Default: FALSE

        Note, that syncookies is fallback facility.
        It MUST NOT be used to help highly loaded servers to stand
        against legal connection rate. If you see SYN flood warnings
        in your logs, but investigation shows that they occur
        because of overload with legal connections, you should tune
        another parameters until this warning disappear.
        See: tcp_max_syn_backlog, tcp_synack_retries, tcp_abort_on_overflow.

        syncookies seriously violate TCP protocol, do not allow
        to use TCP extensions, can result in serious degradation
        of some services (f.e. SMTP relaying), visible not by you,
        but your clients and relays, contacting you. While you see
        SYN flood warnings in logs not being really flooded, your server
        is seriously misconfigured.
--- Documentation/networking/ip-sysctl.txt

-- 
 ---- WBR, Michael Shigorin <mike на altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


Подробная информация о списке рассылки community