From owner-freebsd-questions@FreeBSD.ORG Sun May 27 22:04:14 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 C5A6E16A4D4 for ; Sun, 27 May 2007 22:04:14 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.freebsd.org (Postfix) with ESMTP id 33BEA13C457 for ; Sun, 27 May 2007 22:04:14 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so749634uge for ; Sun, 27 May 2007 15:04:10 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=gLrYMyAA97mcHkrdcuM2Ab9WtjJrW0P8p58XGS9FUsHBtC3zPxEPni78KSUM2R0QjhzB6Rv1cfapTbO2RJqtPCQM/aYI082ChCCNkGxPebNpmeXmVTDMoUouJzwuK075U42EjTlMCQ5ocw913/keT6MsKAdtO0/Jam5VpPdtE4U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=BwRT8LPabK5CUr5QyGs9bbe6uFDpOOJcvAmnD00FjC0gUH+Sgw2/WhSRCupD8Q1N3YchSCNDVW6Z+jnieNRdyv2c19yf4ySUAMYK7Q3+xAnng/rmzsp6/C1YeJCRVYUArH1y2bzOLGfYVK5SohzAMGI94cTf52GUAG+RWS3yF2E= Received: by 10.66.232.9 with SMTP id e9mr4776219ugh.1180303450753; Sun, 27 May 2007 15:04:10 -0700 (PDT) Received: from ?192.168.123.111? ( [84.0.101.61]) by mx.google.com with ESMTP id u6sm12021646uge.2007.05.27.15.04.09; Sun, 27 May 2007 15:04:10 -0700 (PDT) Message-ID: <4478CCF8.7050205@gmail.com> From: deeptech71@gmail.com User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <465849C8.7000300@gmail.com> In-Reply-To: <465849C8.7000300@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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: , Date: Sun, 27 May 2007 22:04:14 -0000 X-Original-Date: Sun, 28 May 2006 00:04:40 +0200 X-List-Received-Date: Sun, 27 May 2007 22:04:14 -0000 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 > > This setup gives programs like fetch the full download bandwidth, full > upload bandwidth, and allows LAN transfers only at 128kB/s. Removing the > lan queue allows the sk0 interface to run at a total of 72kB/s, that > would be 64kB/s download and 8kB/s download, as i need, but 1. when I'm > not uploading, download speed is 72kB/s; 2. when I'm not downloading, > upload speed is 16kB/s (ISP limit); and 3. when I'm transferring over > LAN, internet speed is hindered, not to mention the 72kB/s LAN speed. > That sucks. pf allows 1 queueset per interface. What now? Help plz? THX! > Actually, I don't know why this seemed work (probably it's because others were downloading at the same time), now it just doesn't do anything. Setting it to 6Kb (0.72kB/s) allows ~15kB/s. :S