View Single Post

   
  #2 (permalink)  
Old 02-16-2008, 07:27 AM
Peter N. M. Hansteen
 
Posts: n/a
Default Re: limiting bandwidth

"Paul" <paul@rtfm.org> writes:

> down. The user of this machine often sends large emails (often 3 meg
> or more) and when this happens , the rest of the network chokes. is
> there a way I can limit the upload speed of a particular machine to
> say 4k/s max? Does PF have some feature for this?!?


Yes. altq is what you are looking for.

If all you want to do is limit the bandwidth for a simgle machine, you
can set up a default queue with total bandwidth equal to total outgoing
capacity, then set up a subqueue with the max bandwidth you want that
machine to use, then write one or more rules which pass the traffic from
that machine on the smaller queue. Let the rest of the traffic you pass
use the default queue.

--
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
http://www.blug.linux.no/rfc1149/ http://www.datadok.no/ http://www.nuug.no/
"First, we kill all the spammers" The Usenet Bard, "Twice-forwarded tales"
Reply With Quote