public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* ip contrack problem, not strictly followed RFC, DoS very much possible
@ 2004-12-06 13:54 Grzegorz Piotr Jaskiewicz
  2004-12-06 14:28 ` Baruch Even
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Grzegorz Piotr Jaskiewicz @ 2004-12-06 13:54 UTC (permalink / raw)
  To: kernel list; +Cc: coreteam

Hi list

There is little bug, eversince, no author would agree to correct it 
(dunno why) in ip_conntrack_proto_tcp.c:91:
unsigned long ip_ct_tcp_timeout_established =   5 DAYS;

Making it 5 days, makes linux router vournable to (D)DoS attacks. You 
can fill out conntrack hash tables very quickly, making it virtually 
dead. This computer will only respond to direct action, from keyboard, 
com port. This is insane, it just blocks it self, and does nothing, no 
fallback scenario, nothing.
As far as I remember ( I have to look and find exact place where it's 
writen ), RFC specifies this timeout as max 100s. 5 days is insane, and 
no argumentation will explain it. I would suggest changing it to 100 
SECS and remove line:
#define DAYS * 24 HOURS

as it won't be used anymore.

If someone has argumentation for 5 days timeout, please speak out. In 
everyday life, router, desktop, server usage 100s is enough there, and 
makes my life easier, as many other linux admins.

Thanks.

-- 
GJ

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-12-07  8:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-06 13:54 ip contrack problem, not strictly followed RFC, DoS very much possible Grzegorz Piotr Jaskiewicz
2004-12-06 14:28 ` Baruch Even
2004-12-06 19:11 ` Jose Luis Domingo Lopez
2004-12-06 19:31   ` Lee Revell
2004-12-06 19:48 ` Valdis.Kletnieks
2004-12-06 22:20   ` gj
2004-12-06 22:48 ` Willy Tarreau
2004-12-07  8:56 ` [netfilter-core] " Jozsef Kadlecsik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox