Re: cant get the damn bandwidth limiter working

2007-05-31 Thread deeptech71

Roland Smith wrote:

On Wed, May 30, 2007 at 02:58:50PM +0200, [EMAIL PROTECTED] wrote:

 RW wrote:

On Sat, 26 May 2007 16:52:56 +0200
[EMAIL PROTECTED] 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, andpass 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.)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cant get the damn bandwidth limiter working

2007-05-30 Thread deeptech71

RW wrote:

On Sat, 26 May 2007 16:52:56 +0200
[EMAIL PROTECTED] 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!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cant get the damn bandwidth limiter working

2007-05-30 Thread magikman

[EMAIL PROTECTED] wrote:

RW wrote:

On Sat, 26 May 2007 16:52:56 +0200
[EMAIL PROTECTED] 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!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]
IPFW and dummynet will allow this. I came up with this from a short 
google search:

http://www.askbjoernhansen.com/2004/09/22/mini_tutorial_f.html

good luck!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cant get the damn bandwidth limiter working

2007-05-30 Thread deeptech71

magikman wrote:

[EMAIL PROTECTED] wrote:

RW wrote:

On Sat, 26 May 2007 16:52:56 +0200
[EMAIL PROTECTED] 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!

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]
IPFW and dummynet will allow this. I came up with this from a short 
google search:

http://www.askbjoernhansen.com/2004/09/22/mini_tutorial_f.html

good luck!



Hmm. I've made considerable searches, but only found pf. Guess google's about 
luck, not just knowlegde of search terms :]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cant get the damn bandwidth limiter working

2007-05-30 Thread Roland Smith
On Wed, May 30, 2007 at 02:58:50PM +0200, [EMAIL PROTECTED] wrote:
  RW wrote:
  On Sat, 26 May 2007 16:52:56 +0200
  [EMAIL PROTECTED] 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, andpass 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
-- 
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)


pgpVT93A7dCpP.pgp
Description: PGP signature


Re: cant get the damn bandwidth limiter working

2007-05-29 Thread RW
On Sat, 26 May 2007 16:52:56 +0200
[EMAIL PROTECTED] 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. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cant get the damn bandwidth limiter working

2007-05-27 Thread deeptech71

[EMAIL PROTECTED] 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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]