All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Die to NOTRACK/TRACE, long live MARK!
@ 2004-05-19 21:30 Jozsef Kadlecsik
  2004-05-20 10:48 ` Pablo Neira
  2004-05-21  0:20 ` Philip Craig
  0 siblings, 2 replies; 13+ messages in thread
From: Jozsef Kadlecsik @ 2004-05-19 21:30 UTC (permalink / raw)
  To: netfilter-devel

Hi,

Willy Tarreau suggested that the TCP window tracking code could be used to
protect connections against the "TCP vulnerabilities" brought up recently
(see for example http://www.uniras.gov.uk/vuls/2004/236929). After some
discussion and code-fragments the result is that it could be done fairly
easily: the SYN/RST probes could be counted and when a threshold is
reached, we'd deliberately drop in-window SYN/RST segments to protect the
connection. However, it'd then mean a violation of the TCP protocol
specification and therefore I'd definitely not like to enable it by
default or to enable it for all traffic. So there should be a way to tell
the system which connections (packets) to protect.

We could introduce a new silly target for that purpose like NOTRACK or
TRACE. However it's pure marking and we do have a interface to mark
packets: the MARK target. So if we could tell the system which mark value
has got the given special meaning, we wouldn't need a new target and we
could even eliminate the NOTRACK/TRACE targets.

Such natural way could be to use the proc interface. Say the files
"mark_notrack", "mark_trace", "mark_syn_rst_protection" in
/proc/sys/net/ipv4/netfilter/ could store the mark values which'd enable
the given functionality for the marked packets. Even the symbolic names
could be supported, say

	... -j MARK --set-mark syn_rst_protection

It seems more natural and what is much more important, extendable anytime
without blowing up the system.

Is there any flawn in the plan? I think NOTRACK/TRACE is not rooted
yet deeply so it won't be painful to get rid of them :-).

Best regards,
Jozsef
-
E-mail  : kadlec@blackhole.kfki.hu, kadlec@sunserv.kfki.hu
PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
          H-1525 Budapest 114, POB. 49, Hungary

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

end of thread, other threads:[~2004-05-28 11:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-19 21:30 [RFC] Die to NOTRACK/TRACE, long live MARK! Jozsef Kadlecsik
2004-05-20 10:48 ` Pablo Neira
2004-05-21  0:20 ` Philip Craig
2004-05-21  2:12   ` Patrick McHardy
2004-05-22 12:38     ` Jozsef Kadlecsik
2004-05-22 14:57       ` Patrick McHardy
2004-05-23  8:55         ` Martin Josefsson
2004-05-23 17:00           ` Patrick McHardy
2004-05-25 12:38         ` Pablo Neira
2004-05-25 17:45           ` Patrick McHardy
2004-05-27 10:33           ` Henrik Nordstrom
2004-05-28 11:41             ` Pablo Neira
2004-05-21 12:35   ` Jozsef Kadlecsik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.