From: "Jason R. Martin" <jrmartn1@csl.uiuc.edu>
To: yomega <yomega@wahooo.net>
Cc: netfilter@lists.samba.org
Subject: Re: IP Traffic Accounting
Date: Sun, 23 Jun 2002 22:50:40 -0500 [thread overview]
Message-ID: <20020623225040.A26831@tiger.csl.uiuc.edu> (raw)
In-Reply-To: <NFBBLDBMIDIOFPBNLEAJCEIOCHAA.yomega@wahooo.net>; from yomega@wahooo.net on Sat, Jun 22, 2002 at 04:02:06PM +0200
I think most of the other posts answered your questions with respect to
netfilter. I just wanted to offer an alternative for IP accounting. Check
out ipaudit (http://ipaudit.sourceforge.net). Assuming you have the pcap
libraries installed on your system, it will keep track of all connections
to/from your system in a nice compact format. Since it keeps track of
connections instead of individual packets, it will likely tell you all the
accounting info you want (packet counts, byte counts, host IPs, ports, etc).
There's even a nifty web interface that you can use to view the data.
Just a thought.
Jason
On Sat, Jun 22, 2002 at 04:02:06PM +0200, yomega wrote:
> Hi List,
>
> i want to set up IP Traffic Accounting. I wanna to measure the Traffic which
> comes in and goes out on specified Ports.
>
> After reading some IPTABLES Manuals and testing some with my Linux
> Fileserver, i thought of doing exactly this by that way:
> I create Rules to Log the specified Ports: iptables ..... -j
> log --log-prefix [name] <- this one :) Because of my syslog Settings, the
> Packets are logged into /var/log/firewall
> Ok now i make a Cron with a little Python or PHP Script that analyses the
> logged packages, and flushes the Log File empty :). The Cron is executed
> every 5 minutes.
>
> 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?
>
> Maybe everthing happens in the RAM (syslog and analysing)? So this would not
> be a hd health prob?
>
> Thanx 4 all suggestions :)
>
> Greetz,
> Stephan
next prev parent reply other threads:[~2002-06-24 3:50 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
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 [this message]
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=20020623225040.A26831@tiger.csl.uiuc.edu \
--to=jrmartn1@csl.uiuc.edu \
--cc=netfilter@lists.samba.org \
--cc=yomega@wahooo.net \
/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