From owner-freebsd-questions@FreeBSD.ORG Fri Jun 13 06:43:39 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4B2C37B40F for ; Fri, 13 Jun 2003 06:43:39 -0700 (PDT) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-217.pit.adelphia.net [24.53.161.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3387443FAF for ; Fri, 13 Jun 2003 06:43:39 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) h5DDh9Og002837; Fri, 13 Jun 2003 09:43:17 -0400 (EDT) (envelope-from wmoran@potentialtech.com) Message-ID: <3EE9D4ED.4070409@potentialtech.com> Date: Fri, 13 Jun 2003 09:43:09 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ian Barnes References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: Trafic Counter X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 13:43:40 -0000 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