From: richard lucassen Date: Tue, 01 Feb 2005 15:11:51 +0000 Subject: Re: [LARTC] combining fw and u32 Message-Id: <20050201161151.34a6f4b7.mailinglists@lucassen.org> List-Id: References: <20050201154902.047e4b23.mailinglists@lucassen.org> In-Reply-To: <20050201154902.047e4b23.mailinglists@lucassen.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Tue, 1 Feb 2005 16:58:46 +0200 (EET) "Catalin(ux aka Dino) BOIE" wrote: > > Is it possible to create 1 filter rule using fw selectors AND u32 > > selectors? > > http://kernel.umbrella.ro if you don't have 2.6.11-rc1. > If you have the latest iproute2 you can do: > > # send a packet with mark 3 and tcp with dport >= 1024 to 1:50 > tc filter add dev dummy0 \ > protocol ip \ > parent 1: prio 13 \ > u32 \ > match mark 0x0003 0xffff \ > match ip dport 0x0400 0x0400 \ > flowid 1:50 > > See this link for more examples: > http://kernel.umbrella.ro/net/mark_in_u32/examples.txt Ok, thnx, unfortunately it's a 2.4 machine. I just saw it in the changelog of 2.6.11rc1. That's a good thing :-) As this machine will be upgraded in the coming months, I'll put 2.6.11 on it. And which version do you call "new iproute2"? R. -- ___________________________________________________________________ Recursion: see recursion +------------------------------------------------------------------+ | Richard Lucassen, Utrecht | | Public key and email address: | | http://www.lucassen.org/mail-pubkey.html | +------------------------------------------------------------------+ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/