All of lore.kernel.org
 help / color / mirror / Atom feed
* MARK targets all non-terminating
@ 2007-01-02 17:44 Jan Engelhardt
  2007-01-02 18:25 ` Tom Eastep
  0 siblings, 1 reply; 15+ messages in thread
From: Jan Engelhardt @ 2007-01-02 17:44 UTC (permalink / raw)
  To: kaber; +Cc: Netfilter Developer Mailing List

Hi,


I'll keep it terse: why are xt_MARK, xt_CONNMARK and friends all using 
XT_CONTINUE instead of NF_DROP? It makes it particularly hard to write 
classification:

-t mangle -A POSTROUTING -d 134.76.0.0/16 -j CLASSIFY --set-class 1:10
-t mangle -A POSTROUTING -p tcp -j CLASSIFY --set-class 1:11

Will mark all TCP traffic to 134.76.0.0/16 as 1:11 instead of 1:10. 
Instead, one needs to fiddle and fiddle and end up with:

-t mangle -N class10
-t mangle -A class10 -j CLASSIFY --set-class 1:10
-t mangle -N class11
-t mangle -A class11 -j CLASSIFY --set-class 1:11

-t mangle -A POSTROUTING -d 134.76.0.0/16 -g class10
-t mangle -A POSTROUTING -p tcp -g class11

This non-terminating behavior of [file list] is _NOT_ documented in the 
iptables manpage. Is it even intended at all?


[file list:]
18:37 ichi:../net/netfilter > grep XT_CONTINUE *.c
xt_CLASSIFY.c:  return XT_CONTINUE;
xt_CONNMARK.c:  return XT_CONTINUE;
xt_CONNSECMARK.c:       return XT_CONTINUE;
xt_MARK.c:      return XT_CONTINUE;
xt_MARK.c:      return XT_CONTINUE;
xt_NOTRACK.c:           return XT_CONTINUE;
xt_NOTRACK.c:   return XT_CONTINUE;
xt_SECMARK.c:   return XT_CONTINUE;

ipt_TOS.c:    return IPT_CONTINUE;
ipt_TTL.c:    return IPT_CONTINUE;
(and to a certain degree ipt_TCPMSS, possibly others)


	-`J'
-- 

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

end of thread, other threads:[~2007-01-10 23:01 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-02 17:44 MARK targets all non-terminating Jan Engelhardt
2007-01-02 18:25 ` Tom Eastep
2007-01-07  2:09   ` Jan Engelhardt
2007-01-08  7:56     ` Jozsef Kadlecsik
2007-01-08 21:42       ` Jan Engelhardt
2007-01-09 22:09         ` Jan Engelhardt
2007-01-10  8:21           ` Jozsef Kadlecsik
2007-01-10 11:21             ` Jan Engelhardt
2007-01-10 12:11           ` Amin Azez
2007-01-10 12:16             ` Jan Engelhardt
2007-01-10 12:56               ` Patrick McHardy
2007-01-10 14:00                 ` Jan Engelhardt
2007-01-10 14:17                   ` Amin Azez
2007-01-10 23:01                     ` Jan Engelhardt
2007-01-10 12:13         ` Amin Azez

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.