Linux Netfilter discussions
 help / color / mirror / Atom feed
* mark match
@ 2003-03-29 13:25 Peteris Krumins
  2003-03-29 14:40 ` Cedric Blancher
  0 siblings, 1 reply; 3+ messages in thread
From: Peteris Krumins @ 2003-03-29 13:25 UTC (permalink / raw)
  To: netfilter

hi,

 what's the point of mask in the mark match?
 
 for example, i want to match anything marked from 1 (1b) to
 127 (1111111b), is it possible to do it using a mask?

 nfmark    mask    match
 1      &  127  =  1
 77     &  127  =  77

 i see no point in mask.
 could anyone explain the use of mask to match multiple nfmarks?

P.Krumins



^ permalink raw reply	[flat|nested] 3+ messages in thread
* mark match
@ 2003-06-30 20:49 Gabriel Kujawski
  0 siblings, 0 replies; 3+ messages in thread
From: Gabriel Kujawski @ 2003-06-30 20:49 UTC (permalink / raw)
  To: netfilter

Hi,
I mark packets this way:
iptables -t mangle -I PREROUTING -p icmp -s 192.168.0.2 -d 0/0 -j MARK 
--set-mark 0x2
This workes correctly.
Next I try to log these marked packets with ULOG target:
iptables -t mangle -I POSTROUTING -m mark --mark 0x2 -j ULOG 
--ulog-nlgroup 1 --ulog-prefix MARKtest
but this rule doesn't work.
However, if I use FORWARD chain packets are logged.
Could you tell me the reason?



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

end of thread, other threads:[~2003-06-30 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-29 13:25 mark match Peteris Krumins
2003-03-29 14:40 ` Cedric Blancher
  -- strict thread matches above, loose matches on Subject: below --
2003-06-30 20:49 Gabriel Kujawski

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