All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [LARTC] How to priorize incoming traffic
@ 2002-03-13 21:19 Stef Coene
  2002-03-13 21:54 ` GW
  0 siblings, 1 reply; 2+ messages in thread
From: Stef Coene @ 2002-03-13 21:19 UTC (permalink / raw)
  To: lartc

On Wednesday 13 March 2002 22:54, you wrote:
> Hello,
>
> I think of how to priorize incoming traffic.
>
> Therefor I read different web pages and found two different meanings.
>
> On http://www.docum.org/stef.coene/qos/docs/BB/BB.html:
>
> You can do traffic shaping with the Linux kernel. It's very important
> that you understand that you can only shape the outgoing bandwidth.
>
> On http://www.docum.org/stef.coene/qos/docs/mail_2.html:
>
> # suppose you want to limit incoming web traffic (you are the client not
> the server so the _source_ port is 80) mark the packets with 1 in netfilter
> # the handle seems to require to have value ffff (why ???)
> /sbin/iptables -A PREROUTING -i eth0 -t mangle -p tcp --sport 80 -j MARK
> --set-mark 1
> # then add the queuing discipline
> tc qdisc add dev eth0 handle FFFF: ingress
> # limit bw to 64kbit. I'm not really sure of the burst and mtu values...
> tc filter add dev eth0 parent ffff: protocol ip prio 50 handle 1 fw
> police rate 64kbit burst 2400 mtu 9k drop flowid :1
>
> Well, does anybody know whether it is possible to limit/manage incoming
> traffic in this way mentioned above or not?
Euh, this IS limiting incoming bandwidth :)
So I lied in the document on docum.org, I know.  You can limit incoming 
bandwith with the ingress qdisc, but you can not use CBQ or HTB so you can't 
use classes.
Also take a look at the wondershaper in the lartc howto.

Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-03-13 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-13 21:19 [LARTC] How to priorize incoming traffic Stef Coene
2002-03-13 21:54 ` GW

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.