From: Roy Kidder Date: Tue, 29 Jul 2014 22:10:26 +0000 Subject: SFQ + throttling to specific hosts Message-Id: <53D81BD2.4000803@thirtyonegifts.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org 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