From owner-freebsd-questions@FreeBSD.ORG Sun Oct 7 20:21:47 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB08816A417 for ; Sun, 7 Oct 2007 20:21:47 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.freebsd.org (Postfix) with ESMTP id 60D3913C478 for ; Sun, 7 Oct 2007 20:21:46 +0000 (UTC) (envelope-from svein.h@lvor.halvorsen.cc) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id 1FA258470 for ; Sun, 7 Oct 2007 22:21:45 +0200 (CEST) Received: from maren.thelosingend.net (maren.math.ntnu.no [129.241.211.48]) by fri.itea.ntnu.no (Postfix) with SMTP for ; Sun, 7 Oct 2007 22:21:44 +0200 (CEST) Received: (qmail 55073 invoked by uid 88); 7 Oct 2007 22:21:44 +0200 Received: from maren.math.ntnu.no (HELO weld.ej2.thelosingend.net) (129.241.211.48) by maren.thelosingend.net (qpsmtpd/0.31.1) with ESMTP; Sun, 07 Oct 2007 22:21:44 +0200 Message-ID: <47093F63.6000008@lvor.halvorsen.cc> Date: Sun, 07 Oct 2007 22:19:47 +0200 From: Svein Halvor Halvorsen User-Agent: Thunderbird 2.0.0.6 (X11/20070923) MIME-Version: 1.0 To: Halid Faith References: <001101c8079b$f0be7c80$dc96eed5@ihlasnetym> In-Reply-To: <001101c8079b$f0be7c80$dc96eed5@ihlasnetym> X-Enigmail-Version: 0.95.0 OpenPGP: id=9198BB40; url=mailto:pgpkey@svein.halvorsen.cc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: freebsd-questions@freebsd.org Subject: Re: I am looking for a bandwidth limiter tool as to time and kilobytes. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Oct 2007 20:21:47 -0000 Halid Faith wrote: > Hello > > I use dummynet to limit bandwidth on freebsd6.2. > > But I don't know how I limit an ip blocks as to time ( for instance like 1 Gbyte in 1 month ). > > I am looking for a tool which provides to limit bytes according to time. > > is there any free tool for this case? > > Thanks already I used to live at a campus dorm where you would get 10 Gbit outbound traffic per 24h. If you used more than that, they would cut your access for 48h for the first violation, then for a week on the next violation. You would get no warning. Although this often was more than enough, I guarded myself, by monitoring my network usage. After 8 Gbit outbound traffic, I would throttle my bandwidth to say 1 Mbps, and when hitting 9 GBit, to say 100 kbps, and so on. (Actually this was more granulated, with some traffic cut off earlier than some higher prioritized traffic) I used some ipfw counters, and a cron job to parse the output of ipfw show. Then I would enable some dummynet rules accordingly. This was some years ago under 4.8, I think. Now, I think pf has better support for this kinds of setup. Svein Halvor