From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Ronan LAVIEC" Date: Wed, 08 Jan 2003 18:57:57 +0000 Subject: Re: [LARTC] Incomprehensive problem with tc filter & mangle... Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org ----- Original Message ----- From: "Stef Coene" To: "Ronan LAVIEC" ; Sent: Wednesday, January 08, 2003 7:32 PM Subject: Re: [LARTC] Incomprehensive problem with tc filter & mangle... > > # The rules that's didn't work, and I don't now why. > > $TC filter add dev $EXT_IFACE parent 1: protocol ip prio 15 \ > > handle 10 fw classid 1:10 > > $TC filter add dev $EXT_IFACE parent 1: protocol ip prio 20 \ > > handle 15 fw classid 1:10 > I don't think it's an issue, but you can try it without a prio parameter? > > Stef > > -- > > stef.coene@docum.org > "Using Linux as bandwidth manager" > http://www.docum.org/ > #lartc @ irc.oftc.net > It's always the same thing... Only the default setting seems to work. >From yesterday, I've tried with match ip src, and this also doesn't work. ($TC filter add dev $EXT_IFACE parent 1: protocol ip prio 15 u32 match ip src $PREFERED_IP flowid 1:10) I've tried to use mangle mark to do the same thing, and as every time always the default setting seems to work. I've tried another thing : I used some rules from a script found here : http://www.linux-france.org/prj/inetdoc/i/net/guides/Advanced-routing-Howto/ Advanced-routing-Howto.v0.9-15.html#ss15.8 So I used : $TC filter add dev $EXT_IFACE parent 1:0 protocol ip prio 10 u32 \ match ip tos 0x10 0xff flowid 1:10 $TC filter add dev $EXT_IFACE parent 1:0 protocol ip prio 10 u32 \ match ip protocol 1 0xff flowid 1:10 $TC filter add dev $EXT_IFACE parent 1: protocol ip prio 10 u32 \ match ip protocol 6 0xff \ match u8 0x05 0x0f at 0 \ match u16 0x0000 0xffc0 at 2 \ match u8 0x10 0xff at 33 \ flowid 1:10 In addition to my own rules.... And these three rules work, not mine. I really understand anything. What's wrong with my rules ? Ronan. _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/