On Tue, May 26, 2009 at 09:07:11AM +0200, Boniforti Flavio wrote:
> Hello list,
>
> I just wanted to report about using iptables to count the *real* amount
> of traffic (data transferred). This is the output I got:
>
> Chain INPUT (policy ACCEPT 22M packets, 55G bytes)
> pkts bytes target prot opt in out source destination
> 0 0 tcp -- * * 0.0.0.0/0 127.0.0.1
> tcp dpt:8876
> 0 0 tcp -- * * 0.0.0.0/0 127.0.0.1
> tcp dpt:8874
> 44908 2799K tcp -- * * 0.0.0.0/0 127.0.0.1
> tcp dpt:8875
> 139K 7252K tcp -- * * 0.0.0.0/0 127.0.0.1
> tcp dpt:8873
Hm, why don't you just filter for destination? Are these dynamic IPs?
> Chain OUTPUT (policy ACCEPT 14M packets, 30G bytes)
> pkts bytes target prot opt in out source destination
> 0 0 tcp -- * * 127.0.0.1 0.0.0.0/0
> tcp spt:8876
> 0 0 tcp -- * * 127.0.0.1 0.0.0.0/0
> tcp spt:8874
> 139K 2290M tcp -- * * 127.0.0.1 0.0.0.0/0
> tcp spt:8873
> 45421 745M tcp -- * * 127.0.0.1 0.0.0.0/0
> tcp spt:8875
I'd take netcat, add an iptables rule and transfer some amount of random
data to another host in the network. That would be almost
unidirectional, so you see where the numbers show up.
HTH,
Tino.
--
"What we nourish flourishes." - "Was wir nähren erblüht."
www.lichtkreis-chemnitz.de
www.craniosacralzentrum.de
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
|