From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Roy" Date: Mon, 02 Feb 2004 03:10:10 +0000 Subject: Re: [LARTC] match ip dst works, match ip dport doens't. Message-Id: <00b201c3e93a$11874ac0$030aa8c0@t> List-Id: References: <001b01c3e934$27886fd0$2a21a8c0@qha> In-Reply-To: <001b01c3e934$27886fd0$2a21a8c0@qha> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > Hi, > > I'm trying to limit the maximum outbound bandwidth for each destination > port using '"'match ip dport $port 0xffff'"' u32 classifier. But it seems > that it's not filtered by this classifier. I'm using kernel 2.4.24 with > almost all filter-related options configured, and tc patched to support > HTB. > > Below is all commands I used to configure the outbound rate. > ------------------------------- > $TC qdisc del dev eth0 root > /dev/null 2>&1 > $TC qdisc add dev eth0 root handle 1: htb > $TC class add dev eth0 parent 1: classid 1:1 htb rate $RATEmbit ceil > $RATEmbit > $TC filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dport > $PORT 0xffff flowid 1:1 > ------------------------------- Is it ALL script? since filter priorities means alot and are you sure you want to limit destination(client) ports not source(sever)? _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/