Date: Sat, 8 Jan 2005 06:30:36 +0000 From: Jez Hancock <jez.hancock@munk.nu> To: Alexandr Lookoshkoff <alcr@inbox.ru> Cc: freebsd-questions@freebsd.org Subject: Re: traffic counting Message-ID: <20050108063036.GA70354@munk.nu> In-Reply-To: <1325122753.20050104154355@inbox.ru> References: <1325122753.20050104154355@inbox.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 04, 2005 at 03:43:55PM +0500, Alexandr Lookoshkoff wrote: > > How to make such thing as traffic counting? > > There is a gateway (with NAT) and a local network. Every month > i must send a report how many traffic get everybody. > > What tool can help me with it? There's a hack I use that's detailed here: http://ipfwstats.sf.net/ essentially a shell rc script runs at boot time to create an ipfw 'count' rule for each user on the server. The counts are then collected via cron at the end of each day and dropped into a mysql db. The db can then be queried by a php script from a web server to display statistics to the end user/admin/etc. Fairly simple but worked for me at the time. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/ - ipfw peruser traffic logging
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050108063036.GA70354>