From owner-freebsd-questions@FreeBSD.ORG Wed May 30 13:34:45 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 751EF16A46E for ; Wed, 30 May 2007 13:34:45 +0000 (UTC) (envelope-from mailing.lists@dvterry.com) Received: from mail.dvterry.com (mail.dvterry.com [64.34.163.247]) by mx1.freebsd.org (Postfix) with ESMTP id 0FC7E13C45E for ; Wed, 30 May 2007 13:34:45 +0000 (UTC) (envelope-from mailing.lists@dvterry.com) Received: from [10.24.65.11] (user1.coxfiber.net [216.54.27.211]) by mail.dvterry.com (Postfix) with ESMTP id 16B313381CD; Wed, 30 May 2007 09:34:45 -0400 (EDT) Message-ID: <465D7D72.5030402@dvterry.com> Date: Wed, 30 May 2007 09:34:42 -0400 From: magikman User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: deeptech71@gmail.com References: <465849C8.7000300@gmail.com> <20070529150012.7ff9faff@gumby.homeunix.com.> <465D750A.1050605@gmail.com> In-Reply-To: <465D750A.1050605@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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: Wed, 30 May 2007 13:34:45 -0000 deeptech71@gmail.com wrote: > RW wrote: >> 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. > > That would explain. So is there any way to limit the speed at which > i'm downloading? Come on I've seen a bunch of software like this for > Windows on the net! > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" IPFW and dummynet will allow this. I came up with this from a short google search: http://www.askbjoernhansen.com/2004/09/22/mini_tutorial_f.html good luck!