From owner-freebsd-ipfw@FreeBSD.ORG Sun Aug 28 21:19:38 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 EFF1B16A41F; Sun, 28 Aug 2005 21:19:38 +0000 (GMT) (envelope-from vladone@spaingsm.com) Received: from mail.spaingsm.com (llwb135.servidoresdns.net [217.76.137.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 923F343D46; Sun, 28 Aug 2005 21:19:37 +0000 (GMT) (envelope-from vladone@spaingsm.com) Received: from SERVEREL (unknown [85.120.13.192]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.spaingsm.com (Postfix) with ESMTP id 0FA6F24C7CC; Sun, 28 Aug 2005 23:04:17 +0200 (CEST) Date: Mon, 29 Aug 2005 00:19:29 +0300 From: vladone X-Mailer: The Bat! (v3.0.1.33) Professional X-Priority: 3 (Normal) Message-ID: <1752667837.20050829001929@spaingsm.com> To: freebsd-ipfw@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: challenge with dummynet+ipfw X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vladone List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Aug 2005 21:19:39 -0000 Hi! I want to organize my bandwith in this mode # download section 1000kbit/s | | |--------------------| | | | | hight low priorized traffic priorized | | 512kbit/s | | | user |---------------| share same | | bandwith | | 300 kbit/s 512kbit/s | | | | | | users share users share same bandwith same bandwith I want to use ipfw+dummynet. Solutions is to pass traffic that match an rule to multiple pipe or queue with different weights. But how? What is the precedence? (need sysctl net.inet.ip.fw.one_pass=0) If any have an solutions please be explicity. I dont want to be easy, but is significant in this case, in wich order apply rule, and how is configured pipe and queue. For this reason, solutions please put in this form (example): #section pipe and queue configuration ipfw pipe 1 config ..... ipfw queue 8 config weight 3 pipe 6 .... .................. #section ipfw rules ipfw add pipe 1 {match hight pri.} ipfw add pipe 5 {match low pri. 300k same bandwith} ipfw add queue 3 {match for hight pri. 512k same share} ............................... I work for a time with dummynet. In this example have an important to build some hierarchy with dummy. P.S. this scheme is not changeable. Please refer to this situation. Thanks in advance!