Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2001 09:51:33 -0800
From:      Derrick John Klise <derrick@lumiere.net>
To:        Enriko Groen <enriko.groen@netivity.nl>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Bandwidth
Message-ID:  <20011214095133.A42659@leaf.lumiere.net>
In-Reply-To: <510EAC2065C0D311929200A02472526237A69B@NETIVITY-FS>; from enriko.groen@netivity.nl on Fri, Dec 14, 2001 at 12:21:59PM %2B0100
References:  <510EAC2065C0D311929200A02472526237A69B@NETIVITY-FS>

next in thread | previous in thread | raw e-mail | index | archive | help
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			<derrick@lumiere.net>
"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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011214095133.A42659>