All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about marking traffic.
@ 2004-06-28 16:17 mortar
  2004-06-28 16:31 ` Antony Stone
  0 siblings, 1 reply; 6+ messages in thread
From: mortar @ 2004-06-28 16:17 UTC (permalink / raw)
  To: netfilter

Hi

I marked few types of traffic:

$IPTABLES -t mangle -A PREROUTING -p tcp -j CONNMARK --restore-mark
$IPTABLES -t mangle -A PREROUTING -p tcp -m mark ! --mark 0 -j ACCEPT

$IPTABLES -t mangle -A PREROUTING -p tcp -m ipp2p --ipp2p -j MARK --set-mark $P2P
$IPTABLES -t mangle -A PREROUTING -p tcp --dport 21   -j MARK --set-mark $FTP
$IPTABLES -t mangle -A PREROUTING -p tcp --dport 80   -j MARK --set-mark $WWW

$IPTABLES -t mangle -A PREROUTING -p tcp -j CONNMARK --save-mark


With rules below I can count traffic of this types:


$IPTABLES -t mangle -A POSTROUTING -m mark --mark $P2P -j ACCEPT
$IPTABLES -t mangle -A POSTROUTING -m mark --mark $FTP -j ACCEPT
$IPTABLES -t mangle -A POSTROUTING -m mark --mark $WWW -j ACCEPT


But I want count all other traffic, not marked with marks $P2P, $FTP,
$WWW withe speparated rule. How can I do that?

  

-- 
Pozdrawiam
 Marcin                         mailto:slacklist@op.pl



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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-28 16:17 Question about marking traffic mortar
2004-06-28 16:31 ` Antony Stone
2004-06-28 20:50   ` Re[2]: " mortar
2004-06-28 21:04     ` Antony Stone
2004-06-29  9:29       ` Marco Colombo
2004-06-30 20:09         ` Antony Stone

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.