All of lore.kernel.org
 help / color / mirror / Atom feed
* MARK targets all non-terminating?
@ 2006-12-06 20:14 Jan Engelhardt
  2006-12-06 20:29 ` Tom Eastep
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Engelhardt @ 2006-12-06 20:14 UTC (permalink / raw)
  To: Netfilter Developer Mailing List

Hello list,


I just noticed that the CLASSIFY and MARK targets are non-terminating 
(as are CONNSECMARK and SECMARK as I grep). Even though that is probably 
the intended default thing, I have one setup where the following rules 
are present:

-t mangle -A POSTROUTING -p icmp -j CLASSIFY --set-class 1:10
-t mangle -A POSTROUTING -p udp -j CLASSIFY --set-class 1:11
-t mangle -A POSTROUTING -p tcp -j CLASSIFY --set-class 1:12
-t mangle -A POSTROUTING -j CLASSIFY --set-class 1:20

All packets get classified as 1:20. Per source code of xt_CLASSIFY.c 
this is justified. So what I would need is (awkward construct ahead!)

-t mangle -A POSTROUTING -p icmp -j CLASSIFY --set-class 1:10
-t mangle -A POSTROUTING -p icmp -j RETURN
-t mangle -A POSTROUTING -p udp -j CLASSIFY --set-class 1:11
-t mangle -A POSTROUTING -p udp -j RETURN
-t mangle -A POSTROUTING -p tcp -j CLASSIFY --set-class 1:12
-t mangle -A POSTROUTING -p tcp -j RETURN
-t mangle -A POSTROUTING -j CLASSIFY --set-class 1:20

Is not there a better way to do this without specifying all matches twice?


	-`J'
-- 

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

end of thread, other threads:[~2006-12-06 21:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06 20:14 MARK targets all non-terminating? Jan Engelhardt
2006-12-06 20:29 ` Tom Eastep
2006-12-06 21:08   ` Jan Engelhardt

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.