From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stef Coene Date: Wed, 08 Jan 2003 19:07:23 +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 > 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 ? I have no idea. What if you try to change to working rules untill you have the match you want? Maybe you find the error if you test each change. Stef -- stef.coene@docum.org "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/