[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: controlling bandwith.



On Fri, 2005-04-01 at 04:51 +0800, Franki wrote:
> Hi guys,
> 
> I have a gateway linux box (gateway as in router, not as in the brand), 
> and hooked up to that, I have a web server and a mail server.
> 
> I'd like to set up something on the gatway box such that the mail server 
> can never use more then 1/3 of the available bandwidth so as to stop a 
> heap of big attachments significantly slowing down the whole connection.
> 
> Does anyone know how I might go about this?

traffic shaping and l7-filtering.

http://l7-filter.sourceforge.net/

never done it myself, but i imagine others have. traffic shaping is in
the kernel, device drivers -> networking support -> traffic shaper
you need to enable experimental and or incomplete drivers
(config_experimental).

CONFIG_SHAPER:
The traffic shaper is a virtual network device that allows you to
limit the rate of outgoing data flow over some other network device.
The traffic that you want to slow down can then be routed through
these virtual devices. See
<file:Documentation/networking/shaper.txt> for more information.
An alternative to this traffic shaper is the experimental
Class-Based Queueing (CBQ) scheduling support which you get if you
say Y to "QoS and/or fair queueing" above.
To set up and configure shaper devices, you need the shapecfg
program, available from <ftp://shadow.cabi.net/pub/Linux/> in the
shaper package.
To compile this driver as a module, choose M here: the module
will be called shaper.  If unsure, say N.
Symbol: SHAPER [=m]
Prompt: Traffic Shaper (EXPERIMENTAL)
  Defined at drivers/net/Kconfig:2567
  Depends on: NETDEVICES && EXPERIMENTAL
  Location:
    -> Device Drivers
      -> Networking support
        -> Network device support (NETDEVICES [=y])


-matt zagrabelny




Reply to: