* [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out)
@ 2003-04-09 12:24 openings
2003-04-09 12:33 ` Jesper Lund
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: openings @ 2003-04-09 12:24 UTC (permalink / raw)
To: lartc
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 ?
Thanks.ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿË\x01\x14™¨¥Šx%ŠË\x7f,\x04S\vùšŠYšŸ÷lõ¯ç–^[m§ÿÿ™¨¥™©ÿvÏZþy\x7f™¨¥™©ÿ–+-ŠwèþV«µÁÎY3ÿ†Ûiÿÿåj»\þŠà
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out)
2003-04-09 12:24 [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out) openings
@ 2003-04-09 12:33 ` Jesper Lund
2003-04-09 20:54 ` Stef Coene
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Jesper Lund @ 2003-04-09 12:33 UTC (permalink / raw)
To: lartc
> I want to limit traffic rate in both direction.
> (total 5Mbps limit to destination port 80 traffic in both direction)
Is it only port 80 you want to shape ?
> but I can limit in only one direction each.
You do that by shaping on outgoing traffic om each interface.
Outgoing on internal interface is downloading for your users. Outgoing on
your external interface is uploading for your users.
//Jesper
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out)
2003-04-09 12:24 [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out) openings
2003-04-09 12:33 ` Jesper Lund
@ 2003-04-09 20:54 ` Stef Coene
2003-04-10 8:32 ` hare ram
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Stef Coene @ 2003-04-09 20:54 UTC (permalink / raw)
To: lartc
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@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out)
2003-04-09 12:24 [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out) openings
2003-04-09 12:33 ` Jesper Lund
2003-04-09 20:54 ` Stef Coene
@ 2003-04-10 8:32 ` hare ram
2003-04-10 17:46 ` Stef Coene
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hare ram @ 2003-04-10 8:32 UTC (permalink / raw)
To: lartc
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@docum.org>
To: "openings" <openings@palgong.knu.ac.kr>; <lartc@mailman.ds9a.nl>
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@docum.org
> "Using Linux as bandwidth manager"
> http://www.docum.org/
> #lartc @ irc.oftc.net
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out)
2003-04-09 12:24 [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out) openings
` (2 preceding siblings ...)
2003-04-10 8:32 ` hare ram
@ 2003-04-10 17:46 ` Stef Coene
2003-04-14 4:47 ` hare ram
2003-04-14 8:49 ` Stef Coene
5 siblings, 0 replies; 7+ messages in thread
From: Stef Coene @ 2003-04-10 17:46 UTC (permalink / raw)
To: lartc
On Thursday 10 April 2003 10:20, hare ram wrote:
> 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
Yes. All traffic entering that imq device will be limited to 5Mb. And if you
put upload + download traffic in it, download and upload will be limited
together to 5mb.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out)
2003-04-09 12:24 [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out) openings
` (3 preceding siblings ...)
2003-04-10 17:46 ` Stef Coene
@ 2003-04-14 4:47 ` hare ram
2003-04-14 8:49 ` Stef Coene
5 siblings, 0 replies; 7+ messages in thread
From: hare ram @ 2003-04-14 4:47 UTC (permalink / raw)
To: lartc
Hi
thanks for the reply
what will be the situation if its Transparent Bridge, how does the IMQ work
on this situation
hare
----- Original Message -----
From: "Stef Coene" <stef.coene@docum.org>
To: "hare ram" <hareram@sol.net.in>; "openings"
<openings@palgong.knu.ac.kr>; <lartc@mailman.ds9a.nl>
Sent: Thursday, April 10, 2003 11:16 PM
Subject: Re: [LARTC] Can I limit traffic rate to 5Mbps in both direction (in
and out)
> On Thursday 10 April 2003 10:20, hare ram wrote:
> > 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
> Yes. All traffic entering that imq device will be limited to 5Mb. And if
you
> put upload + download traffic in it, download and upload will be limited
> together to 5mb.
>
> Stef
>
> --
>
> stef.coene@docum.org
> "Using Linux as bandwidth manager"
> http://www.docum.org/
> #lartc @ irc.oftc.net
>
>
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out)
2003-04-09 12:24 [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out) openings
` (4 preceding siblings ...)
2003-04-14 4:47 ` hare ram
@ 2003-04-14 8:49 ` Stef Coene
5 siblings, 0 replies; 7+ messages in thread
From: Stef Coene @ 2003-04-14 8:49 UTC (permalink / raw)
To: lartc
On Monday 14 April 2003 06:57, hare ram wrote:
> Hi
>
> thanks for the reply
> what will be the situation if its Transparent Bridge, how does the IMQ work
> on this situation
I don't know.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-04-14 8:49 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-09 12:24 [LARTC] Can I limit traffic rate to 5Mbps in both direction (in and out) openings
2003-04-09 12:33 ` Jesper Lund
2003-04-09 20:54 ` Stef Coene
2003-04-10 8:32 ` hare ram
2003-04-10 17:46 ` Stef Coene
2003-04-14 4:47 ` hare ram
2003-04-14 8:49 ` Stef Coene
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.