From: Michael <mutk@ozemail.com.au>
To: IPtables Users <netfilter@lists.samba.org>
Subject: Re: IP Traffic Accounting
Date: Mon, 24 Jun 2002 15:42:09 +1000 [thread overview]
Message-ID: <3D16B131.4090202@ozemail.com.au> (raw)
In-Reply-To: 20020623225040.A26831@tiger.csl.uiuc.edu
Jason R. Martin wrote:
>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.
>
That's a good suggestion , Jason.
I have had experience with similar programs, for example ipmeter
(http://www.ipmeter.org).
The main problems with this way of doing things are:
- If the host you run the IPaudit program on is also a firewall, by
virtue of the fact that the program requires promiscuous mode on the
interface it listens on introduces a (theoretical) security risk.
- An alternative to running the IPaudit on the firewalling host is to
have a seperate standalone machine running IPaudit, to sniff packets
passing by on an ethernet segment. This requires either a bridge device
or a non-switch Hub to connect the IPaudit machine to the same ethernet
segment as the interface you want to audit. So additional costs, and
additional points of failure.
- If the IPaudit runs on an additional machine as above, and uses a
plain garden variety non-switched Hub to allow the audit machine to
"see" the packets going to and from the internal interface of the
firewall, this introduces a performance bottle neck, especially when you
consider that there is no such thing as a full duplex non-switching hub.
So the use of the IPaudit standalone monitoring machine causes less than
ideal performance.
IPmeter runs on a standalone machine, and I have observed performance
problems when using a non-switch hub to access the ethernet segment.
Collisions -many- with as little as 50 users.
IPaudit will probably be quite ok for a Workstation providing Internet
connections to other home users or small office, if security on the
Internal interface is not a concern. Also, a standalone machine to
monitor traffic may be a simple setup, and performance may not be such
an issue for a small number of hosts when using a no-switch Hub.
Performance will not be hampered at all if you can get hold of an
ethernet bridging device.
BTW, I have a complex setup of iptables firewall, a pam_iptables module,
PHP scripts, C coded programs and postgressql DB running right now to
account for Internet access traffic. It's a monstrosity of
interdependent programs, very messy. But it is currently working, and
provides Internet access for over 50 users. Users have to loggin to the
server , this triggers iptables rules to be added to allow them access,
and starts a process that stores their byte counts in a PostgreSQL DB.
Users can also access a local web page to check their usage details for
month etc...
When I get the time, I'll clean it all up, document it and put it on a
website as an example of how to account for packets/bytecounts using
iptables, *and* provide access control as well (Thats what pam_iptables
provides).
I am saying it's a definitive, and good example, just "an example"...
Cheers,
Michael
next prev parent reply other threads:[~2002-06-24 5:42 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
2002-06-24 5:42 ` Michael [this message]
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=3D16B131.4090202@ozemail.com.au \
--to=mutk@ozemail.com.au \
--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