Skip to contentSkip to conversation

bandwidth measurement

DISCUSSION Julio Cesar Ody 2 participants 2 messages Oct 15, 2002

lore
Share & tools
lore
#0 lore raw

Hello. I would like to know if it's possible to measure the bandwidth usage of each computer (fixed ip numbers) with iptables. Thanks.

Julio Cesar Ody

#1 lore raw
Quoted 2 lines · Julio Cesar Ody

Hello. I would like to know if it's possible to measure the bandwidth usage of each computer (fixed ip numbers) with iptables. Thanks.

You can measure the number of packets and bytes sent to or from specific IP
addresses if you want. Measure the number of bytes over a known period of
time and you can work out the bandwidth.

Try something like:

iptables -A FORWARD -s a.b.c.d
iptables -A FORWARD -d a.b.c.d

iptables -L FORWARD -n -v -x

Yes, those rules have no "-j TARGET" at the end. This is correct.

Antony.

Signature · 5 lines
You can spend the whole of your life trying to be popular,
but at the end of the day the size of the crowd at your funeral
will be largely dictated by the weather.

 - Frank Skinner