All of lore.kernel.org
 help / color / mirror / Atom feed
* Differences between -j MARK and -j CONNMARK
@ 2005-02-11  9:52 Omar Garcia
  2005-02-11 10:05 ` Vinod Chandran
  2005-02-11 12:40 ` Jason Opperisano
  0 siblings, 2 replies; 5+ messages in thread
From: Omar Garcia @ 2005-02-11  9:52 UTC (permalink / raw)
  To: netfilter

Hi list,

What`s the differences between these two groups of rules.?????
In the first i use MARK --set-mark to mark packets and in the other i use CONNMARK --set-mark

1.
    # iptables -I POSTROUTING -t mangle -j CONNMARK --restore-mark
    # iptables -I POSTROUTING -t mangle -m mark ! --mark 0 -j ACCEPT
    # iptables -I POSTROUTING -t mangle -m ipp2p --ipp2p -j MARK --set-mark 30
    # iptables -I POSTROUTING -t mangle -m ipp2p --bit -j MARK --set-mark 30
    # iptables -I POSTROUTING -t mangle -j CONNMARK --save-mark

2.
    # iptables -I POSTROUTING -t mangle -j CONNMARK --restore-mark
    # iptables -I POSTROUTING -t mangle -m mark ! --mark 0 -j ACCEPT
    # iptables -I POSTROUTING -t mangle -m ipp2p --ipp2p -j CONNMARK --set-mark 30
    # iptables -I POSTROUTING -t mangle -m ipp2p --bit -j CONNMARK --set-mark 30
    # iptables -I POSTROUTING -t mangle -j CONNMARK --save-mark


Regards.
Thanks

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

end of thread, other threads:[~2005-02-20 23:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-11  9:52 Differences between -j MARK and -j CONNMARK Omar Garcia
2005-02-11 10:05 ` Vinod Chandran
2005-02-11 12:40 ` Jason Opperisano
2005-02-11 12:59   ` Omar Garcia
2005-02-20 23:33   ` Ian! D. Allen

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.