[mrtg] separating WAN traffic from LAN traffic
Steve Shipway
s.shipway at auckland.ac.nz
Mon Jan 5 21:58:03 CET 2009
> I have an interface for which I'd like to graph only the traffic to and
> from the WAN, and ignore the traffic to and from the LAN.
...
> Is there some simple way to graph just the WAN traffic, given my
> constraints?
I do this on my home network gateway router. The way I achieve it is by
using the Linux IPTables rules and then having a custom plug-in for MRTG to
extract the packet counts from the matching rules. It requires a couple of
extra rules in the IPTables (actually, I create a special logging chain and
redirect external traffic through it) and a custom MRTG plug-in to query the
iptables status output.
Of course, this requires the server in question to be running Linux.
Otherwise, you'll need to see if your server has similar features, or use an
RMAN probe or sniffer.
If you're using Linux and you'd like more details let me know.
Alternatively, full instructions on doing this with iptables are given in
Chapter 7 of the 'Using MRTG with RRDtool and Routers2' book - see
http://www.steveshipway.org/book to get a copy (sorry for the advertising)
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3133 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20090106/a101bc3e/attachment.bin
More information about the mrtg
mailing list