Re: [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out)

Linux Advanced Routing and Traffic Control

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

 



Hi Stef

Continuation with your responce to this post
If i send all traffic to Imq, i can shape aggrigate B/w
like either i can send 5Mb up or 5Mb down
but iam going to achive with this webserver total 5Mb, is this right

hare
----- Original Message -----
From: "Stef Coene" <stef.coene@xxxxxxxxx>
To: "openings" <openings@xxxxxxxxxxxxxxxxx>; <lartc@xxxxxxxxxxxxxxx>
Sent: Thursday, April 10, 2003 2:24 AM
Subject: Re: [LARTC] Can I limit traffic rate to 5Mbps in both direction (in
and out)


> On Wednesday 09 April 2003 14:24, openings wrote:
> > Hi.
> >
> > I have two NIC in Linux machine.
> >
> > One NIC is out direction(to WAN), the other is in direction(to LAN).
> >
> > I want to limit traffic rate in both direction.
> > (total 5Mbps limit to destination port 80 traffic in both direction)
> >
> > but I can limit in only one direction each.
> >
> > How can I limit traffic in both direction ?
> You can do this if you patch the kernel and iptables so it supports the
imq
> device.  An imq device is a virutal device and you can put packets with
> iptables in it.  You can also shape that device.
> In your case, you need to create 1 imq device and redirect packets from
both
> directions to port 80 to it.  And add a tbf (or cbq or htb) qdisc to the
imq
> device to limit the traffic to 5mbps.
>
> For a link to the imq device, see the faq page on www.docum.org.
>
> Stef
>
> --
>
> stef.coene@xxxxxxxxx
>  "Using Linux as bandwidth manager"
>      http://www.docum.org/
>      #lartc @ irc.oftc.net
>
> _______________________________________________
> LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux