Sophie

Sophie

distrib > CentOS > 5 > x86_64 > by-pkgid > 7ca84d00a753576dfaee15bac39038f0 > files > 131

mrtg-2.14.5-4.el5.x86_64.rpm

From: Ilya Konstantinov <future@galanet.net>
Date: 06 Sep 2000 18:53:33 -0200

I have tweaked the ipchainacc perl script provided in MRTG's contrib for our
own use at our LUG, and I thought the rest of the users might find my
changes helpful.

Changes:
1. Made it account BYTES instead of PACKETS, like it used to do before.
2. It now accepts (optional) two command-line arguments to make it
return results for the 2nd etc. rules in the chain, so for example,
I can insert rules into the 'acctin' and 'acctout' chains which'll match
traffic with destination and source (respectively) port set to 80, so I
could
see how much traffic passes through HTTP only.

so:
ipchainacc 1 1
should return counters of 2nd acctin and 2nd acctout rules.