All of lore.kernel.org
 help / color / mirror / Atom feed
* SFQ + throttling to specific hosts
@ 2014-07-29 22:10 Roy Kidder
  2014-07-30 11:31 ` GGounot
  0 siblings, 1 reply; 2+ messages in thread
From: Roy Kidder @ 2014-07-29 22:10 UTC (permalink / raw)
  To: lartc

I'm guessing this question has already been asked and answered, but I've 
searched and couldn't find an example for what I'm trying to do.

My Linux firewall has eth0 on the outside, eth1 on the inside. I would 
like to throttle two IPs on my internal network to a predetermined 
bandwidth (say 80K) while using SFQ for everything else. I have the SFQ 
part working with the following:

   tc qdisc del dev eth1 root
   tc qdisc add dev eth1 root handle 1: htb default 10
   tc class add dev eth1 parent 1: classid 1:1 htb rate $UPRATE
   tc class add dev eth1 parent 1:1 classid 1:10 htb rate $UPRATE ceil 
$UPRATE mtu 1500
   tc qdisc add dev eth1 parent 1:10 handle 10: sfq perturb 10

But I'm not quite sure how to go about rate limiting the two IPs in 
question. From what I've read, CBQ is what I'd use, but can I use that 
along with SFQ? If so, how?

Thanks,
Roy

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

end of thread, other threads:[~2014-07-30 11:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-29 22:10 SFQ + throttling to specific hosts Roy Kidder
2014-07-30 11:31 ` GGounot

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.