From: David B Harris <eelf@sympatico.ca>
To: netfilter@lists.samba.org
Subject: Re: IP Traffic Accounting
Date: Sat, 22 Jun 2002 10:00:49 -0400 [thread overview]
Message-ID: <20020622100049.32188874.eelf@sympatico.ca> (raw)
In-Reply-To: <NFBBLDBMIDIOFPBNLEAJCEIOCHAA.yomega@wahooo.net>
[-- Attachment #1: Type: text/plain, Size: 1273 bytes --]
On Sat, 22 Jun 2002 16:02:06 +0200
"yomega" <yomega@wahooo.net> wrote:
> OK this should work, but i still got a question:
>
> First i start to realize that my log file will become very big with
> even little outbound traffic. Now the cron is exectued and all the
> data written on the hd is analysed and written on the hd. I'm afraid
> that this will injure the health of the HD. Is there any other maybe
> more "clean" possibility to do that loggin? or have i made some
> mistakes in my thoughts?
I'd suggest you use iptable's byte-counting instead. 'iptables -L -n -v
-x' will list the bytes which have _crossed_ each given rule. (So it
won't just count which packets have matched.)
Probably be a lot faster ;)
P.S.: In production, don't forget to use -Z to zero the counters, so you
aren't counting the same packets twice.
--
________________________________________________________________________
\ David B. Harris, Systems administrator | http://www.terrabox.com /
/ eelf@sympatico.ca, elf@terrabox.com | http://eelf.ddts.net \
\======================================================================/
/ Clan Barclay motto: Aut agere, aut mori. (Either action, or death.) \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-06-22 14:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-22 14:02 IP Traffic Accounting yomega
2002-06-22 14:00 ` David B Harris [this message]
2002-06-22 14:09 ` Antony Stone
2002-06-22 14:58 ` Leonardo Rodrigues
2002-06-22 15:18 ` AW: IP Traffic Accounting / Own Chains yomega
2002-06-22 15:18 ` Antony Stone
2002-06-22 15:35 ` AW: " yomega
2002-06-22 14:03 ` IP Traffic Accounting Antony Stone
2002-06-24 3:50 ` Jason R. Martin
2002-06-24 5:42 ` Michael
2002-06-24 10:33 ` Antony Stone
2002-06-24 12:27 ` Michael
2002-06-24 12:27 ` Michael
2002-06-24 15:33 ` Jason R. Martin
2002-06-24 16:41 ` Ramin Alidousti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020622100049.32188874.eelf@sympatico.ca \
--to=eelf@sympatico.ca \
--cc=netfilter@lists.samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox