From owner-freebsd-isp Fri Dec 14 9:51:42 2001 Delivered-To: freebsd-isp@freebsd.org Received: from leaf.lumiere.net (leaf.lumiere.net [208.44.192.100]) by hub.freebsd.org (Postfix) with ESMTP id 6AA1937B405 for ; Fri, 14 Dec 2001 09:51:38 -0800 (PST) Received: by leaf.lumiere.net (Postfix, from userid 1082) id 452DACD13; Fri, 14 Dec 2001 09:51:33 -0800 (PST) Date: Fri, 14 Dec 2001 09:51:33 -0800 From: Derrick John Klise To: Enriko Groen Cc: freebsd-isp@freebsd.org Subject: Re: Bandwidth Message-ID: <20011214095133.A42659@leaf.lumiere.net> References: <510EAC2065C0D311929200A02472526237A69B@NETIVITY-FS> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <510EAC2065C0D311929200A02472526237A69B@NETIVITY-FS>; from enriko.groen@netivity.nl on Fri, Dec 14, 2001 at 12:21:59PM +0100 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Fri, Dec 14, 2001 at 12:21:59PM +0100, Enriko Groen wrote: > Hi, > > Next week I'll be building a machine which is supposed to do some bandwidth > limiting and measurement; next to being the firewall. > > DUMMYNET seems to be the bandwidth limit solution, but is it also useable > together with IPFilter (which i favor over IPFW)? > Or are there other possibilities? Yes, you can use ipfw (dummynet) with ipfilter. > And what are the (software) suggestions for measuring bandwidth? > I would like to measure the amount of traffic per service (www, ftp, dns, > smtp, pop), per server (or rather per ip) and per domainname (virtual > website). Would this be possible? Ipfilter has a "count" action that you can put in your rules file which will keep accounting of the traffic. Not so sure about measuring via domainname, but you can using something like count in from any to a.b.c.d port = 80 count out from a.b.c.d to any port = 80 will keep accounting for anything going to/coming from a.b.c.d, port 80. ipfstat -aio will then show you the accounting statistics gathered. `man 5 ipf` and search for 'count' for more information. -- Derrick John Klise "I went into a general store, and they wouldn't sell me anything specific". -- Steven Wright To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message