Hi,

there are a 3 ways (or better ..  I know only 3 ways:) to do this:

1.) Set up a ipchains/iptables Rule which counts the traffic (simply create
a rule which cover the whole traffic like
iptables -A INPUT -j ACCEPT
iptables -A FORWARD -j ACCEPT
iptables -A OUTPUT -j ACCEPT
with iptables -L CHAINNAME -v -x you can read the byte counters out .. just
write a script (or use some prebuild from the net) wich reads those output
With this solution you have also the option to track down the Traffic per
Service (e.g. per port)

2.) Use a switch with SNMP (and MRTG to visualize the traffic per
Switchport) by the way you can also use MRTG to visualize the read values
from the solution above

3.) Use a SNMP Daemon on the machine itself .. and MRTG to monitor it ..

If you take the first solution have a look on the Netfilter Mailinglist
archives (links etc can be found on www.netfilter.org where this problem is
discussed a few times)

If you take any other solution this link might be helpfull: www.mrtg.org

Hope this helps,

Stefan Siefert


-----Ursprungliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]Im Auftrag von Jefferson Cowart
Gesendet: Samstag, 27. April 2002 06:02
An: [EMAIL PROTECTED]
Betreff: Bandwidth usage


Is there anyway to track bandwidth usage? It would be great if I could
get a break down per IP, but failing that just a simple counter of
bandwidth used would be the next best. The simple ifconfig doesn't
appear to show that bandwidth utilization; I'm assuming that it only
counts packets in user space and forwarded packets never enter user
space. Sorry if this has already been answered on the list but I was
unable to find it in the archives. TIA

----------------
Thanks
Jefferson Cowart
[EMAIL PROTECTED]

Support Open Instant Messaging Protocols
http://www.petitiononline.com/openIM/petition.html




Reply via email to