From owner-freebsd-questions@FreeBSD.ORG Wed May 30 16:33:44 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 0E7AB16A400 for ; Wed, 30 May 2007 16:33:44 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) by mx1.freebsd.org (Postfix) with ESMTP id 8369C13C468 for ; Wed, 30 May 2007 16:33:43 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id l4UGXflH007186; Wed, 30 May 2007 18:33:41 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 1F48EB826; Wed, 30 May 2007 18:33:41 +0200 (CEST) Date: Wed, 30 May 2007 18:33:41 +0200 From: Roland Smith To: deeptech71@gmail.com Message-ID: <20070530163341.GA42972@slackbox.xs4all.nl> Mail-Followup-To: deeptech71@gmail.com, freebsd-questions@freebsd.org References: <465849C8.7000300@gmail.com> <20070529150012.7ff9faff@gumby.homeunix.com.> <465D750A.1050605@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <465D750A.1050605@gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.15 (2007-04-06) X-Virus-Scanned: by XS4ALL Virus Scanner 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 16:33:44 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 30, 2007 at 02:58:50PM +0200, 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 fr= om=20 > > 192.168.0.0/16 queue lan means: send the packet to the lan queue if it'= s=20 > > routed out via the > > interface to which "queue lan" is attached, i.e. back out via sk0 - > > which isn't going to happen.=20 >=20 > That would explain. So is there any way to limit the speed at which i'm= =20 > downloading? Come on I've seen a bunch of software like this for Windows= on=20 > the net! According to http://www.openbsd.org/faq/pf/queueing.html it _can_ work if you have a separate router See the examples. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGXadlEnfvsMMhpyURAmFdAKCh0qqJ9lugVxBPSUgIn6bYgtkcRQCfQUnx 1w5CmDXU9UoVhHikZRzrGVQ= =xVJF -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--