All of lore.kernel.org
 help / color / mirror / Atom feed
* bidirectional CONNMARK?
@ 2005-03-09  5:26 Wang Jian
  2005-03-09  5:49 ` Wang Jian
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Wang Jian @ 2005-03-09  5:26 UTC (permalink / raw)
  To: netfilter-devel

Hi folks,

What is the CONNMARK's purpose? I think it is to reduce rule traversal,
like this:

# iptables -A PREROUTING -t mangle \
   -m connmark --mark 0xEF000000/0xFF000000 -j CONNMARK --restore-mark

# iptables -A PREROUTING -t mangle <matching rule 1-1> -j CONNMARK --set-mark 0xEF000001
# iptables -A PREROUTING -t mangle <matching rule 1-2> -j CONNMARK --set-mark 0xEF000001
# iptables -A PREROUTING -t mangle <matching rule 1-3> -j CONNMARK --set-mark 0xEF000001
# iptables -A PREROUTING -t mangle <matching rule 2-1> -j CONNMARK --set-mark 0xEF000002
# iptables -A PREROUTING -t mangle <matching rule 3-1> -j CONNMARK --set-mark 0xEF000003
<snip a lot of rules>

But an issue occurs, when we want to set 2 different marks for a single
session in two directions.

When doing QoS control as an router between two or more interfaces,
bi-directional control is neccessary. Since nfmark is the most
convenient way to classify packet, should we extend CONNMARK to support
two marks?

Comment on this issue is welcome.

If it is a good idea, I will provide a patch for it.




-- 
  lark

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

end of thread, other threads:[~2005-03-11  5:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09  5:26 bidirectional CONNMARK? Wang Jian
2005-03-09  5:49 ` Wang Jian
2005-03-09  8:30 ` Wang Jian
2005-03-09  9:24 ` Henrik Nordstrom
2005-03-09  9:54   ` Re[2]: " Wang Jian
2005-03-09 11:24     ` Re[3]: " Wang Jian
2005-03-10  5:04     ` Re[2]: " Jesse Peng
2005-03-10  6:49       ` Re[4]: " Wang Jian
2005-03-11  5:03         ` Jesse Peng
2005-03-10  9:59       ` Re[2]: " Henrik Nordstrom
2005-03-11  5:08         ` Jesse Peng

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.