From owner-freebsd-pf@FreeBSD.ORG Mon May 26 14:20:28 2008 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F8CD106566B for ; Mon, 26 May 2008 14:20:28 +0000 (UTC) (envelope-from ansarm@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id BCFB88FC14 for ; Mon, 26 May 2008 14:20:27 +0000 (UTC) (envelope-from ansarm@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so1544323pyb.10 for ; Mon, 26 May 2008 07:20:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:content-language; bh=/wtxNn6bPAXSdHZGCDWSBS/9/dn9uu5MFCW5aCc1lJE=; b=qxbdfDtqZFU4F8G1DsasbetZMHnTXvOw6UFZrDUMtw6y/1mWPHH/TWCvGdyIYGmIodpcQGWGgqS2bStNfV614ALXotOGQAsZ8fFHSw9SKL3gZZAJC6mH9rDbaxqJ/EKLstn/UkOGDw/y+7BovCF+8VsffKhUNiOCZb2dmxyjAg0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:references:in-reply-to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-mailer:thread-index:content-language; b=Frd0HZPFv+EpXoYhd3gbrGp7hhjYugeS4HwpKDmN2kgC4hE3YgRV/yhPJnLYwEOqTBm9I2aIfF9NgmAYG/dqHMwl06grlYFTewvlf9WFvvde4Ao9v3hG3mWd63ODAOYQTPmfAbVTKNULdSN313qCNrd3G/Pl5MKOA3GJY+g4+rg= Received: by 10.64.179.12 with SMTP id b12mr3813929qbf.98.1211811626711; Mon, 26 May 2008 07:20:26 -0700 (PDT) Received: from ansarmm2 ( [206.248.190.95]) by mx.google.com with ESMTPS id d5sm8405974qbd.8.2008.05.26.07.20.25 (version=SSLv3 cipher=RC4-MD5); Mon, 26 May 2008 07:20:25 -0700 (PDT) From: "Ansar Mohammed" To: "'Jeremy Chadwick'" References: <002d01c8bba7$96128db0$c237a910$@com> <20080522042936.GA24418@eos.sc1.parodius.com> In-Reply-To: Date: Mon, 26 May 2008 10:20:23 -0400 Message-ID: <065801c8bf3b$a4334be0$ec99e3a0$@com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Aci7xHO/oQIfWlGPRoW04Z+lF9cg8AADEO0QANqarqA= Content-Language: en-ca Cc: freebsd-pf@freebsd.org Subject: SOLVED: ALTQ and bandwidth limiting X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2008 14:20:28 -0000 So the problem was that I was running in VMware and the default adapter that vmware configures for the VM is le(AMD PCnet). The le driver did not return the negotiated connection speed when I ran ifconfig. I switched the vm config over to a em (Intel gig) emulation and ifconfig returned the right connection speed. altq now works great. > -----Original Message----- > From: Ansar Mohammed [mailto:ansarm@gmail.com] > Sent: May 22, 2008 2:20 AM > To: 'Jeremy Chadwick' > Cc: 'freebsd-pf@freebsd.org' > Subject: RE: ALTQ and bandwidth limiting > > Ok, I got a bit further. I compiled in ALTQ and I am using Class Based > Queueing. > > Here is a snippet of my pf.conf > > > altq on le1 cbq bandwidth 100Mb queue { std, cifs, http } > > queue std bandwidth 88.5Mb cbq(default) > queue cifs bandwidth 1500Kb cbq > queue http bandwidth 1Mb cbq > > > Here is the problem, no matter what value I set for the CBQ Queue, its > at least 1/4 of the actual configured maximum. So I configured http for > 1Mb, the max throughput I get is 288Mb. Can anyone explain why? > > > > -----Original Message----- > > From: Jeremy Chadwick [mailto:koitsu@FreeBSD.org] > > Sent: May 22, 2008 12:30 AM > > To: Ansar Mohammed > > Cc: freebsd-pf@freebsd.org > > Subject: Re: ALTQ and bandwidth limiting > > > > On Wed, May 21, 2008 at 09:02:59PM -0400, Ansar Mohammed wrote: > > > Hello All, > > > > > > Is there a way using PF and ALTQ that I can set a policy to > restrict > > a > > > particular host to a maximum network speed? > > > > > > I would like to simulate low speed connection using pf. > > > > I believe ipfw dummynet has the capability you're looking for. See > the > > ipfw manpage, section "TRAFFIC SHAPER". > > > > -- > > | Jeremy Chadwick jdc at parodius.com > | > > | Parodius Networking http://www.parodius.com/ > | > > | UNIX Systems Administrator Mountain View, CA, USA > | > > | Making life hard for others since 1977. PGP: 4BD6C0CB > |