From owner-freebsd-ipfw@FreeBSD.ORG Mon May 24 08:13:12 2004 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE66916A4CE for ; Mon, 24 May 2004 08:13:12 -0700 (PDT) Received: from host.cyberbg.com (web13.mail.bg [193.201.172.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CC4E43D46 for ; Mon, 24 May 2004 08:13:09 -0700 (PDT) (envelope-from angel.kafazov@mail.bg) Received: from localhost (web1.mail.bg [193.201.172.98]) by host.cyberbg.com (Postfix) with ESMTP id 8570B3BCB for ; Mon, 24 May 2004 18:12:30 +0300 (EEST) Received: from pD9522C3F.dip.t-dialin.net (pD9522C3F.dip.t-dialin.net [217.82.44.63]) by www.mail.bg (mail.bG Webmail 4.0.1) with HTTP for ; Mon, 24 May 2004 18:12:30 +0300 Message-ID: <1085411550.d99a113e60ee5@www.mail.bg> Date: Mon, 24 May 2004 18:12:30 +0300 From: angel.kafazov@mail.bg To: freebsd-ipfw@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1251" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: mail.bG Webmail 4.0-cvs X-Originating-IP: 217.82.44.63 Subject: How to give equal bandwidth to each host X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 May 2004 15:13:12 -0000 Hello everybody, I have a problem when trying to shape my traffic so that every IP would get proportional amount of the bandwidth. I mean that any number of hosts should= be able to use the full link at any time proportionally. I have made the follow= ing settings: ipfw add pipe 1 ip from 192.168.2.0/24 to any out ipfw add pipe 2 ip from any to 192.168.2.0/24 in ipfw pipe 1 config mask src-ip 0x000000ff bw 128Kbit/s queue 20Kb= ytes ipfw pipe 2 config mask dst-ip 0x000000ff bw 640Kbit/s queue 20Kb= ytes where 768 is my total bandwidth (640 down). However it does not seem to be working correctly. I have FreeBSD 4.9 box doing nat. I will appreciate any help. Best, Angel Kafazov ----------------------------- =C8=F1=EA=E0=F8 =EB=E8 =C8=ED=F2=E5=F0=ED=E5=F2, =EA=EE=E9=F2=EE =E4=E0 =EB= =E5=F2=E8? =C4=E0 =ED=E0=EB=E8? =96 =C2=EA=EB=FE=F7=E8 =F1=E5! =CA=E0=E1=E5=EB=E5=ED =C8=ED=F2=E5=F0=ED=E5=F2 =EE=F2 =C5=E2=F0=EE=EA=EE=EC = =CA=E0=E1=E5=EB =ED=E0 =ED=EE=E2=E0 =E8 =EE=F9=E5 =EF=EE-=E0=EF=E5=F2=E8=F2=ED=E0 =F6=E5=ED=E0 http://www.ekk.bg