[plug] Track traffic on an aliased interface

Onno Benschop onno at itmaze.com.au
Thu Dec 16 11:02:03 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.

Whoot!

Ok, does this keep over a shut-down, or do I need to log it also :-)

Cheers,

Onno Benschop 

Connected via Optus B3 at S34°33'15" - E150°21'57" (Moss Vale, NSW)
-- 
()/)/)()        ..ASCII for Onno.. 
|>>?            ..EBCDIC for Onno.. 
--- -. -. ---   ..Morse for Onno.. 

Proudly supported by Skipper Trucks, Highway1, Concept AV, Sony Central, Dalcon
ITmaze - ABN: 56 178 057 063 - ph: 04 1219 8888 - onno at itmaze dot com dot au




More information about the plug mailing list