From owner-freebsd-questions@FreeBSD.ORG Tue May 29 14:00:20 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 59BFE16A400 for ; Tue, 29 May 2007 14:00:20 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 3627C13C46C for ; Tue, 29 May 2007 14:00:19 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 5CD285194F for ; Tue, 29 May 2007 10:00:18 -0400 (EDT) Date: Tue, 29 May 2007 15:00:12 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070529150012.7ff9faff@gumby.homeunix.com.> In-Reply-To: <465849C8.7000300@gmail.com> References: <465849C8.7000300@gmail.com> X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: cant get the damn bandwidth limiter working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2007 14:00:20 -0000 On Sat, 26 May 2007 16:52:56 +0200 deeptech71@gmail.com wrote: > pf and altq are enabled. My ISP allows 16kB/s upload and 128kB/s > download. I want to use half of that. What should pf.conf contain, to > limit my computer's upload and download speeds? I've tried: > > altq sk0 cbq bandwidth 1576Kb queue { lan, upload, download } > queue lan bandwidth 1000Kb cbq(default) > queue upload bandwidth 64Kb cbq > queue download bandwidth 512Kb cbq > block in all > pass in quick on sk0 from 192.168.0.0/16 queue lan > pass in all on sk0 queue download > block out all > pass out quick on sk0 to 192.168.0.0/16 queue lan > pass out all on sk0 queue upload > AFAIK ALTQ only queues outgoing traffic, and pass in quick on sk0 from 192.168.0.0/16 queue lan means: send the packet to the lan queue if it's routed out via the interface to which "queue lan" is attached, i.e. back out via sk0 - which isn't going to happen.