[mrtg] Re: Traffic using IPCHAINS or IPTABLES
Lars Holmström
lars.holmstrom at flysta.net
Wed Dec 5 22:33:52 MET 2001
There is a kit in the contribution area of MRTG. Basically it does
# fetch the status from ipchains
$_=`$ipchains -L $inrule -v -n -x |grep -v -i Chain |grep -v -i pkts`;
@in_bytes = split;
$_=`$ipchains -L $outrule -v -n -x |grep -v -i Chain |grep -v -i pkts`;
@out_bytes = split;
Ive run it for some time with success.
/Lars
Alexander Eduardo Belck wrote:
> How can I monitor the traffic on a set of tcp/udp ports assuming that this
> traffic is going thrue a linux runing ipchains/iptables ?
> I would like to see the bandwidth for mail related traffic, web related
> traffic, interactive services related traffic and so on ...
>
> Thanks,
>
> Alex
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive http://www.ee.ethz.ch/~slist/mrtg
> FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
> WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the mrtg
mailing list