Linux Netfilter discussions
 help / color / mirror / Atom feed
* how to match connection tracker's flows?
@ 2004-11-03 18:17 Abraham van der Merwe
  2004-11-03 19:02 ` Jason Opperisano
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Abraham van der Merwe @ 2004-11-03 18:17 UTC (permalink / raw)
  To: Netfilter Discussions

Hi!

If I add

# rules to track ftp
iptables -t mangle -A POSTROUTING -p tcp -j CONNMARK --restore-mark
iptables -t mangle -A POSTROUTING -p tcp -m mark ! --mark 0 -j RETURN
iptables -t mangle -A POSTROUTING -p tcp --dport 21 -j MARK --set-mark 2
iptables -t mangle -A POSTROUTING -j CONNMARK --save-mark

# a rule to see how much ftp traffic is matched
iptables -t mangle -A POSTROUTING -m mark --mark 2

Now if I ftp some data I can see that all of the traffic is not matched by
looking at the byte counter of the rule above.

What am I doing wrong? I am pretty sure the ftp-data connection is not being
tracked, but surely the conntrack_ftp module should do all the hard work for
me?

-- 

Regards
 Abraham

TODAY the Pond!
TOMORROW the World!
                -- Frogs (1972)

___________________________________________________
 Abraham vd Merwe - Frogfoot Networks CC
 1st Floor, Albion Springs, 183 Main Road, Newlands
 Phone: +27 21 689 3876 Cell: +27 82 565 4451
 Http: http://www.frogfoot.net/ Email: abz@frogfoot.net



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

end of thread, other threads:[~2004-11-04  9:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-03 18:17 how to match connection tracker's flows? Abraham van der Merwe
2004-11-03 19:02 ` Jason Opperisano
2004-11-03 19:05 ` Eric Leblond
2004-11-03 19:07 ` Eric Leblond
2004-11-04  8:46   ` Abraham van der Merwe
2004-11-04  9:26     ` Eric Leblond

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