From owner-freebsd-questions@FreeBSD.ORG Tue Oct 12 00:53:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D37416A4CE for ; Tue, 12 Oct 2004 00:53:55 +0000 (GMT) Received: from mail.wirewalk.com (dsl254-116-226.nyc1.dsl.speakeasy.net [216.254.116.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id C26CA43D39 for ; Tue, 12 Oct 2004 00:53:54 +0000 (GMT) (envelope-from synrat@wirewalk.org) Received: from [192.168.1.3] (unknown [192.168.1.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wirewalk.com (Postfix) with ESMTP id DFED0CEC86 for ; Mon, 11 Oct 2004 20:57:24 -0400 (EDT) Message-ID: <416B29BC.6080108@wirewalk.org> Date: Mon, 11 Oct 2004 20:47:56 -0400 From: synrat User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040919 X-Accept-Language: en-us, en, ru MIME-Version: 1.0 To: freebsd-questions@freebsd.org X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: dummynet X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Oct 2004 00:53:55 -0000 Can someone tell me about a good way to troubleshoot pipes/queues or point me in the rigtt direction. I'm trying to restrict outgoing ftp traffic and create some pipes for VOIP. dummynet and pipe rules load fine ( and are in the kernel ) but seem to have no effect. I did read the manual pages 20 times over. I tried adding pipes before doing "config bw" on them, but that didn't make any difference. thanx a lot in advance. something like this : # APPLIES TO INCOMING PACKETS (DOWNLOADS) ${fwcmd} pipe 1 config bw 1300Kbit/s ${fwcmd} pipe 3 config bw 100Kbit/s ${fwcmd} queue 1 config weight 5 pipe 1 ${fwcmd} add queue 1 ip from any to 192.168.1.4 ${fwcmd} queue 2 config weight 5 pipe 1 ${fwcmd} add queue 2 ip from any to 192.168.1.3 ${fwcmd} queue 3 config weight 10 pipe 3 ${fwcmd} add queue 3 udp from any to 192.168.1.2 # APPLIES TO OUTGOING PACKETS (UPLOADS) ${fwcmd} pipe 2 config bw 1000Kbit/s ${fwcmd} pipe 4 config bw 100Kbit/s ${fwcmd} queue 4 config weight 5 pipe 2 ${fwcmd} add queue 4 ip from 192.168.1.4 to any ${fwcmd} queue 5 config weight 5 pipe 2 ${fwcmd} add queue 5 ip from 192.168.1.3 to any ${fwcmd} queue 6 config weight 10 pipe 4 ${fwcmd} add queue 6 udp from 192.168.1.2 to any THIS IS FOR OUTGOING FTP ${fwcmd} add pipe 7 tcp from 216.254.116.226 21 to any out via ${oif} ${fwcmd} pipe 7 config bw 3Kbit/s