From owner-freebsd-ipfw@FreeBSD.ORG Wed Nov 15 13:56:33 2006 Return-Path: X-Original-To: freebsd-ipfw@FreeBSD.org 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 AC26616A4D8 for ; Wed, 15 Nov 2006 13:56:33 +0000 (UTC) (envelope-from eternityos@free.fr) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DBA543D62 for ; Wed, 15 Nov 2006 13:56:24 +0000 (GMT) (envelope-from eternityos@free.fr) Received: from imp8-g19.free.fr (imp8-g19.free.fr [212.27.42.39]) by smtp6-g19.free.fr (Postfix) with ESMTP id 04CF743635 for ; Wed, 15 Nov 2006 14:56:13 +0100 (CET) Received: by imp8-g19.free.fr (Postfix, from userid 33) id 5FB608C43; Wed, 15 Nov 2006 15:25:05 +0100 (CET) Received: from 201.38.238.66 ([201.38.238.66]) by imp8-g19.free.fr (IMP) with HTTP for ; Wed, 15 Nov 2006 15:25:05 +0100 Message-ID: <1163600705.455b2341464d2@imp8-g19.free.fr> Date: Wed, 15 Nov 2006 15:25:05 +0100 From: eternityos@free.fr To: freebsd-ipfw@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 201.38.238.66 Cc: Subject: Re: Limit bandwidth on some ports more than others X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Nov 2006 13:56:33 -0000 Come on, Noone to help me on this one ? It's just 2 pipes (upload/download) and 6 queues (3 for upload / 3 for download) I just want to limitate bandwidth some more on ports 4662 and port 62731... Anyone please ? Hi everyone :) My traffic shaping is like this: ${fwcmd} pipe 3 config bw 64Kbit/s queue 10Kbytes # Upload ${fwcmd} pipe 4 config bw 192Kbit/s queue 10Kbytes # Download # Client ID = 9d1884960e7b310b028f5594843310f6 ${fwcmd} queue 1 config queue 10KBytes pipe 3 weight 10 ${fwcmd} queue 2 config queue 10KBytes pipe 4 weight 10 ${fwcmd} 1100 add queue 1 all from 172.16.1.0/30 to any out via ${oif0} # Upload ${fwcmd} 1101 add queue 2 all from any to 172.16.1.0/30 in via ${oif0} # Download ${fwcmd} 1102 add pass ${dbg} all from 172.16.1.0/30 to any setup # Client ID = a4a4ba939c4c052378efc827b0d13fec ${fwcmd} queue 3 config queue 10KBytes pipe 3 weight 10 ${fwcmd} queue 4 config queue 10KBytes pipe 4 weight 10 ${fwcmd} 1103 add queue 3 all from 172.16.91.0/27 to any out via ${oif0} # Upload ${fwcmd} 1104 add queue 4 all from any to 172.16.91.0/27 in via ${oif0} # Download ${fwcmd} 1105 add pass ${dbg} all from 172.16.91.0/27 to any setup # Client ID = 4e03b83b9511d1962436ee81e552586a ${fwcmd} queue 5 config queue 10KBytes pipe 3 weight 10 ${fwcmd} queue 6 config queue 10KBytes pipe 4 weight 10 ${fwcmd} 1106 add queue 5 all from 172.16.78.0/28 to any out via ${oif0} # Upload ${fwcmd} 1107 add queue 6 all from any to 172.16.78.0/28 in via ${oif0} # Download ${fwcmd} 1108 add pass ${dbg} all from 172.16.78.0/28 to any setup But some of my users have P2P apps... And I want to limit the p2p to 32Mb/s download and upload because it's overloading my bandiwdth. Let's say for example ports 4662 and port 62731... How could I limit for each subnet the p2p bandwidth with those rules without affecting everything else ? Thanks :) Pierre _______________________________