BackupPC-users

Re: [BackupPC-users] [OT] Accounting (iptables): some results

2009-05-28 05:20:38
Subject: Re: [BackupPC-users] [OT] Accounting (iptables): some results
From: Adam Goryachev <mailinglists AT websitemanagers.com DOT au>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 28 May 2009 19:14:26 +1000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Boniforti Flavio wrote:
> Hello list,
> 
> I now have some results about accounting on my machine, I'd like to
> share them here on the list and maybe discuss some items.
> 
> Here we go!
> 
> I've finally set up iptables to count this way:
> 
> iptables -A INPUT -d localhost -p tcp --sport 8873
> iptables -A OUTPUT -s localhost -p tcp --dport 8873
> 
> (for the SSH tunnel)
> 
> iptables -A INPUT -d localhost -s remotehost -p tcp --sport 22
> iptables -A OUTPUT -s localhost -d remotehost -p tcp --dport 22
> (for the SSH session)

As you have been told (by me as well as someone else) you can't count
traffic between localhost (127.0.0.1) and any remotehost, because the
remote host will not be talking to your 127.0.0.1 it will talk to itself
on 127.0.0.1

Just remove the -d localhost and the -s localhost from the SSH tunnel
rules, and you will then see your actual network traffic.

Regards,
Adam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoeVe4ACgkQGyoxogrTyiUs2wCgg67bUbnl/o13D7S6nmwBDiSI
Um0AoIIC58DS8OnBUJ1fxYVo+EWPbWqw
=8+Y3
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
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 as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/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/