[plug] Track traffic on an aliased interface

bwarff bwarff at obsidian.com.au
Thu Dec 16 11:09:04 WST 2004


> Could you use some basic iptables rules to log traffic to/from the
> aliased addresses?  Then you can see the counts with "iptables -vL" 
> they don't wrap at ~2GB either!  I once did this to certain traffic on a
> wireless gateway with far too many aliased interfaces (read dodgy
> router) many moons ago, worked well for me.
> 
> If you already have a firewall setup it is already counting, just add a
> few more specific rules.  If the box has no firewall and is already set
> to allow everything, you can just make rules allowing what you want to
> count and that should do it.
> 
> If you then wanted to graph it, some simple shell magic of the iptables
> -vL output called from mrtg will work fine.

this makes sense - the approach i mentioned would be much slower and less efficient!
tho perhaps 'more fun' and 'more flexible' :P




More information about the plug mailing list