From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Adrian C." Subject: htb upload Date: Wed, 20 Oct 2004 01:11:03 +0300 Sender: linux-admin-owner@vger.kernel.org Message-ID: <60a746890410191511690e0e7d@mail.gmail.com> Reply-To: "Adrian C." Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-admin@vger.kernel.org Hello. I'm trying to shape my upload using htb but it seems no matter what i try it will only shape download. ---- tc qdisc del dev eth2 root handle 1:0 htb tc qdisc add dev eth2 root handle 1:0 htb tc class add dev eth2 parent 1:0 classid 1:1 htb rate 600kbit tc class add dev eth2 parent 1:1 classid 1:2 htb rate 300kbit tc class add dev eth2 parent 1:2 classid 1:21 htb rate 450kbit ceil 590kbit tc class add dev eth2 parent 1:2 classid 1:22 htb rate 250kbit ceil 290kbit tc qdisc add dev eth2 parent 1:21 handle 210: pfifo limit 10 tc qdisc add dev eth2 parent 1:22 handle 220: pfifo limit 10 tc filter add dev eth2 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.22.222 flowid 1:21 tc filter add dev eth2 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.22.223 flowid 1:22 ----- I have tried it with dst instead of src and both src and dst. Upload doesn't seem to bother. eth2 is my WAN. What am i doing wrong?