Date: Fri, 13 Jun 2003 09:43:09 -0400 From: Bill Moran <wmoran@potentialtech.com> To: Ian Barnes <ian@cerebellum.za.net> Cc: freebsd-questions@freebsd.org Subject: Re: Trafic Counter Message-ID: <3EE9D4ED.4070409@potentialtech.com> In-Reply-To: <PPECLBJKHADMJKGPJMEFOEGBCMAA.ian@cerebellum.za.net> References: <PPECLBJKHADMJKGPJMEFOEGBCMAA.ian@cerebellum.za.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Ian Barnes wrote: > Hi, > > I am running FreeBSD 4.8 with squid v 2.5_2. It is only active for one > ethernet card (I have 3). I am using IPF, with IPNAT to do the NAT > > What i would like to know, is how could i count the trafic through that > ethernet card, and that one only. The port in /usr/ports/net/mrtg may be what you want. If that's overkill, you could simply add an IPFW rule that counts the bytes through that interface, see man ipfw. > And can i possibly set a limit as to the > amount of trafic they are allowed to use. Like say 200meg a month or > something? man dummynet is a good place to start. -- Bill Moran Potential Technologies http://www.potentialtech.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EE9D4ED.4070409>