Page 1 of 1

Please fix this: TCP: request_sock_TCP: Possible SYN flooding on port X. Sending cookies. Check SNMP counters.

Posted: Sun Jul 17, 2022 11:50 am
by kjY5bxJ6suLcdJfr
Hi,

I'm running deluge 2.1.1 on Manjaro. I get this message for the incoming port. It causes extreme slow upload speeds.
If I turn off syncookies requests get dropped. It must be a hardcoded value in deluge (TCP Listen Backlog, see https://access.redhat.com/solutions/30453). Changing parameters in sysctl has no effect.

I get this error with another python 3 based program (pyload). In this case, it's the web ui port. It doesn't cause any problems.

Testet qb and I don't get this error.

Code: Select all

ss -ntlp | more 
shows Send-Q 5 for deluged and pyload. For example, qb has 30.

Please fix this since it causes slow upload speed. Thank you!

Re: Please fix this: TCP: request_sock_TCP: Possible SYN flooding on port X. Sending cookies. Check SNMP counters.

Posted: Tue Aug 02, 2022 6:43 pm
by Cas
Which port are you getting the SYN flooding messages for?

What version of libtorrent are you using? libtorrent handles the bittorrent listen sockets so that it could be a setting or bug that needs resolved there.

Re: Please fix this: TCP: request_sock_TCP: Possible SYN flooding on port X. Sending cookies. Check SNMP counters.

Posted: Wed Aug 03, 2022 1:02 am
by kjY5bxJ6suLcdJfr
Thanks for reply.

Port 54979 and libtorrent-rasterbar-1:2.0.7-1.

I just found the setting in libtorrent:

Code: Select all

listen_queue_size
The default value is 5. Same in pyload's web server cheroot. I increased the value there and the kernel messages disappeared.

Under

Code: Select all

  # Increase the alert queue size so that alerts don't get lost.
        self.alert_queue_size = 10000
        self.set_alert_queue_size(self.alert_queue_size)
in alertmanager.py I added

Code: Select all

        component.get('Core').apply_session_setting(
                 'listen_queue_size', 512
        )
The message does not appear anymore.