Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2007 21:56:47 +0200
From:      deeptech71@gmail.com
To:        freebsd-questions@freebsd.org
Subject:   Re: cant get the damn bandwidth limiter working
Message-ID:  <465F287F.1080801@gmail.com>
In-Reply-To: <20070530163341.GA42972@slackbox.xs4all.nl>
References:  <465849C8.7000300@gmail.com> <20070529150012.7ff9faff@gumby.homeunix.com.> <465D750A.1050605@gmail.com> <20070530163341.GA42972@slackbox.xs4all.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Roland Smith wrote:
> 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 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!
> 
> According to http://www.openbsd.org/faq/pf/queueing.html it _can_ work
> if you have a separate router See the examples.
> 
> Roland

Yes but is it possible to set it up as a DownLoadAltqThing on a computer with 1 
net interface? (I don't have the hardware to set up other topologies.)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?465F287F.1080801>