Date: Tue, 04 Jan 2005 16:26:12 +0300 From: "Andrew P." <infofarmer@mail.ru> To: Alexandr Lookoshkoff <alcr@inbox.ru> Cc: FreeBSD-Questions Questions <freebsd-questions@freebsd.org> Subject: Re: traffic counting Message-ID: <41DA9974.5010504@mail.ru> In-Reply-To: <1325122753.20050104154355@inbox.ru> References: <1325122753.20050104154355@inbox.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > > ipfw count ... > Counters zeroed every reboot (so - everyday) I currently have a script, running every minute, which adds all counters to ones in a file and zeros them. I don't have daily/weekly statistics collected, but that's easily implemented. I also wrote a simple C program, which saves counter infoformation without zeroing them. A very simple CGI script shows every user in a network their personal traffic count. Это не так сложно. > How to collect and store these counters? And how to list a summary > trafic (by days if possible)? > Best wishes, Andrew P.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41DA9974.5010504>