From owner-freebsd-questions@FreeBSD.ORG Sat May 26 15:16:56 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 9E12216A400 for ; Sat, 26 May 2007 15:16:56 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 3951913C448 for ; Sat, 26 May 2007 15:16:55 +0000 (UTC) (envelope-from deeptech71@gmail.com) Received: by ug-out-1314.google.com with SMTP id u2so541677uge for ; Sat, 26 May 2007 08:16:55 -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:content-type:content-transfer-encoding; b=Y8+iPuCo/F/U4QhOM6iA7jt7EQCi6LgCPKIiF9TwyikR4/OiRjS1fWulx3c+H8r93ts243RVlgd8f8AQFhn2WKzNcB2S7FWb2dHygfXVTdHIV7lvxn8CHcyV3pWuxw88bzGHdjN4G/JlxPmP5k6rgvqUDNkLf+i/Lx+jQ4Hr1L0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=T2jy9CvYSo/NJKiKx4TwGJ8EYdxv/j7nKbcweYaxhYz7kq3v8GFgbIWerYdfJunBCo8CNwekw88Mol5b1Iw/cJ1WFbgenLXuuvvniVXGP57P3vlgOgcXjjotUij+Yn6TMaUKR90CDvBD1T2ZJMDsFt1wWkG5qZjcTKorNGBf5Xw= Received: by 10.67.115.14 with SMTP id s14mr3759509ugm.1180191077471; Sat, 26 May 2007 07:51:17 -0700 (PDT) Received: from ?192.168.123.111? ( [84.0.109.92]) by mx.google.com with ESMTP id 53sm5324877ugd.2007.05.26.07.51.16; Sat, 26 May 2007 07:51:16 -0700 (PDT) Message-ID: <465849C8.7000300@gmail.com> Date: Sat, 26 May 2007 16:52:56 +0200 From: deeptech71@gmail.com User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Sat, 26 May 2007 15:16:56 -0000 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!