From owner-freebsd-ipfw@FreeBSD.ORG Wed Jul 27 04:00:45 2005 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 BB0C716A425 for ; Wed, 27 Jul 2005 04:00:45 +0000 (GMT) (envelope-from freebsd@wcubed.net) Received: from mail.datausa.com (mail.datausa.com [216.150.220.134]) by mx1.FreeBSD.org (Postfix) with SMTP id 4833F43EF1 for ; Wed, 27 Jul 2005 03:40:43 +0000 (GMT) (envelope-from freebsd@wcubed.net) Received: (qmail 91764 invoked from network); 27 Jul 2005 03:32:39 -0000 Received: from web.datausa.com (HELO webmail.wcubed.net) (216.150.220.132) by mail.datausa.com with SMTP; 27 Jul 2005 03:32:39 -0000 Received: from 67.176.75.179 (SquirrelMail authenticated user freebsd@wcubed.net) by webmail.wcubed.net with HTTP; Tue, 26 Jul 2005 21:40:18 -0600 (MDT) Message-ID: <3265.67.176.75.179.1122435618.squirrel@webmail.wcubed.net> Date: Tue, 26 Jul 2005 21:40:18 -0600 (MDT) From: "Brad Waite" To: freebsd-ipfw@freebsd.org User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: IPFW + dummynet to lower NNTP traffic priority 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, 27 Jul 2005 04:00:46 -0000 I've been working on a way to keep my outbound NNTP traffic from interfering with all other traffic. After reading the ipfw(8) man page and several other resources (including Luigi Rizzo's page), I thought I had it down: ### Outbound ipfw pipe 1 config bw 0K ipfw queue 1 config weight 1 pipe 1 ipfw queue 2 config weight 100 pipe 1 ipfw add 1000 queue 1 all from any to any out dst-port 119 via fxp0 ipfw add 1001 queue 2 all from any to any out via fxp0 ### Inbound ipfw pipe 2 config bw 0K ipfw queue 3 config weight 1 pipe 2 ipfw queue 4 config weight 100 pipe 2 ipfw add 1000 queue 3 all from [NNTP server IP] to any in via fxp0 ipfw add 1001 queue 4 all from any to any in via fxp0 My thinking here is that both queues (in each direction) will share all available bandwidth, but any traffic heading out on port 119 or returning from the news serverwill be superseded by all other traffic. If there's no other traffic, NNTP will be able to use all available bandwidth. It would appear I'm not grasping the concepts. Can anyone tell me what I'm doing wrong? Thanks, Brad Waite