Re: Gateway traffic reporting tool (port)

2003-11-09 Thread Alex de Kruijff
On Sat, Nov 08, 2003 at 02:29:08AM -0200, Augusto Jun Devegili wrote:
 Hi all,
 
 I have a small home LAN with four machines. One of them (mine, actually)
 runs FreeBSD 5.1 and serves as a NAT/gateway between the LAN and an ADSL
 connection.
 
 I would like a tool for traffic reporting, detailing traffic information
 for each LAN computer (by IP or MAC address) so that I know who uses
 more bandwidth. This information should be provided on a time interval
 basis (e.g., between 2 a.m. and 3 a.m., how much traffic per IP/MAC
 address). If possible, I would like to know traffic from my localhost
 regardless of what it is forwarding (as it is the default gateway for
 the LAN, I don't know if that would be possible).
 
This can be done with IPA (its in the ports) in combination with IPFW.
If you like graphics then you could add MRTG on top of it all.

This is how it would look:
http://www.kruijff.org/stats/?dir=docs/file=IP_accounting.txt

I have tree articles about how to setup this. These need to read in
order. The first is about setting up a simple firewall, the second is to
add IPA and the thirth is about adding MRTG.

Please contact me if you have trouble with it.

-- 
Alex

Articles based on solutions that I use:
http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Gateway traffic reporting tool (port)

2003-11-08 Thread Vulpes Velox
Check out ntop.

On Sat, 08 Nov 2003 02:29:08 -0200
Augusto Jun Devegili [EMAIL PROTECTED] wrote:

 Hi all,
 
 I have a small home LAN with four machines. One of them (mine, actually)
 runs FreeBSD 5.1 and serves as a NAT/gateway between the LAN and an ADSL
 connection.
 
 I would like a tool for traffic reporting, detailing traffic information
 for each LAN computer (by IP or MAC address) so that I know who uses
 more bandwidth. This information should be provided on a time interval
 basis (e.g., between 2 a.m. and 3 a.m., how much traffic per IP/MAC
 address). If possible, I would like to know traffic from my localhost
 regardless of what it is forwarding (as it is the default gateway for
 the LAN, I don't know if that would be possible).
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Gateway traffic reporting tool (port)

2003-11-08 Thread Jason C. Wells
You can easily use count rules in ipfw for this.  I did this back when I
had a roommate who was a pornmeister.  The first month that our DSL bill
came in at plus $30, I started counting.  He was using about 85% of our
bandwidth.

Later,
Jason C. Wells


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Gateway traffic reporting tool (port)

2003-11-08 Thread Kathy Quinlan


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Jason C. Wells
 Sent: Sunday, 9 November 2003 7:44 AM
 To: Augusto Jun Devegili
 Cc: [EMAIL PROTECTED]
 Subject: Re: Gateway traffic reporting tool (port)
 
 
 You can easily use count rules in ipfw for this.  I did this 
 back when I had a roommate who was a pornmeister.  The first 
 month that our DSL bill came in at plus $30, I started 
 counting.  He was using about 85% of our bandwidth.
 
 Later,
 Jason C. Wells

OK, I have this problem too.

I have a few questions, IPFW shows the result as packets right ? And not
all packets are equal ?  How do I get the information as human readable
?

If I am wrong please correct me, it is the only way we learn.

Regards,

Kat.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.530 / Virus Database: 325 - Release Date: 22/10/2003
 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Gateway traffic reporting tool (port)

2003-11-08 Thread Jason C. Wells
On Sun, 9 Nov 2003, Kathy Quinlan wrote:

 I have a few questions, IPFW shows the result as packets right ? And not
 all packets are equal ?  How do I get the information as human readable
 ?

 If I am wrong please correct me, it is the only way we learn.

'ipfw show' gives a byte count as well as a packet count.  It's in the man
page.

Later,
Jason

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]