BackupPC-users

Re: [BackupPC-users] [OT] Using iptables for traffic accounting

2009-05-26 10:26:43
Subject: Re: [BackupPC-users] [OT] Using iptables for traffic accounting
From: "Boniforti Flavio" <flavio AT piramide DOT ch>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 26 May 2009 16:23:17 +0200
> I thought you wanted to measure the compressed ssh packets 
> that transport the tunnel, not the uncompressed data as it is 
> seen locally going in and out of the tunnel..

Yes, I'd like to measure what is being transferred from my WAN-side to
the other WAN-side (therefore you're right when talking about
*compressed* data).
If you're saying that to measure that sort of data, I'd better watch
what's travelling on TCP port 22, why didn't I see anything being
transferred to/from that port?
I used these rules:

iptables -I INPUT -s remotehost -d localhost -p tcp --sport 22
iptables -I OUTPUT -s localhost -d remotehost -p tcp --dport 22

I thought these could be right, because of this netstat output:

storebox:~# netstat -na | grep remotehost
tcp        0      0 172.16.16.222:50097     remotehost:22

What do you think is wrong here?

Regards,
Flavio.

------------------------------------------------------------------------------
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/