From owner-freebsd-isp Thu Jul 11 8:42: 0 2002 Delivered-To: freebsd-isp@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0339737B400 for ; Thu, 11 Jul 2002 08:41:55 -0700 (PDT) Received: from mail.dep.ufscar.br (mail.dep.ufscar.br [200.136.228.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id E498B43E3B for ; Thu, 11 Jul 2002 08:41:52 -0700 (PDT) (envelope-from aledon@fugspbr.org) Received: from localhost (localhost.dep.ufscar.br [127.0.0.1]) by mail.dep.ufscar.br (Postfix) with ESMTP id 3912D66B11 for ; Thu, 11 Jul 2002 12:41:49 -0300 (BRT) Received: from fugspbr.org (delphos.dep.ufscar.br [200.136.228.127]) by mail.dep.ufscar.br (Postfix) with ESMTP id BCBBB66B10 for ; Thu, 11 Jul 2002 12:41:44 -0300 (BRT) Message-ID: <3D2DA6F1.7E1DE3C4@fugspbr.org> Date: Thu, 11 Jul 2002 12:40:33 -0300 From: Alexandre Bensi {'aledon'} X-Mailer: Mozilla 4.78 [en] (WinNT; U) X-Accept-Language: pt,en MIME-Version: 1.0 To: Lista freebsd-isp Subject: Re: IPFW References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-11 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 I am using this: /sbin/ipfw add 4000 count tcp from any to any 25 In this option treatment doesn't exist. -- # UPLOAD - 256Kbytes /sbin/ipfw add 4500 pipe 3 all from YOUR_CLASS.0/24 to any via xl0 /sbin/ipfw pipe 3 config bw 2048Kbit/s # DOWNLOAD - 512Kbytes /sbin/ipfw add 5500 pipe 5 all from any to YOUR_CLASS.0/24 via xl1 /sbin/ipfw pipe 5 config bw 4096Kbit/s then yes. Andy Dills wrote: > > On Wed, 10 Jul 2002, Max wrote: > > > Hi, > > > > How do I get IPFW (bandwidth limiting function) to work with logging for > > later analysis, like determining bandwidth usage per ip? > > > > For example, I put an entire ip block in a 256K queue and I want to > > check what each member of that block used... Hope the idea is > > communicated... > > > > ${fwcmd} add queue 1 ip from [MY IP BLOCK] to any > > ${fwcmd} pipe 10 config bw 256kbit/s > > ${fwcmd} queue 1 config pipe 1 weight 30 mask src-ip 0x000000ff > > To get accounting stats with ipfw, you'd need to add two rules for each > IP, prior to the queue, such as: > ${fwcmd} add allow ip from any to [IP] count > ${fwcmd} add allow ip from [IP] to any count > > Then, the byte count corresponding with the first rule accounts for how > much ingress bandwidth is used, and the byte count for the second rule > accounts for how much egress bandwidth is used. > > Remember to check your stats daily! Store and reset daily, lest you lose > important billing data. > > Andy > > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > Andy Dills 301-682-9972 > Xecunet, LLC www.xecu.net > xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > Dialup * Webhosting * E-Commerce * High-Speed Access > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message -- Atenciosamente, Alexandre Bensi {'aledon'} System/Network Administrator -- Icq Uin at WORK | HOME: 118731900 | 129462580 E-Mail: echo alexandre dep ufscar br | sed 's/ /@/;s/ /./g' -- This mail send through Unix FreeBSD 4.5 STABLE - Amavis VScan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message