SFQ + throttling to specific hosts

Linux Advanced Routing and Traffic Control

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

 



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
--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




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