From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Nils Lichtenfeld" Date: Tue, 30 Apr 2002 16:21:54 +0000 Subject: Re: [LARTC] filters with multiple sport matches 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 Hello! ewan wrote: > I want to filter traffic from source ports X and Y into a filter I > try [...] > tc filter add dev eth0 parent 1: protocol ip prio 9 u32 \ > match ip sport X 0xffff \ > match ip sport Y 0xffff \ > flow id 1:30 > > I get and illegal match error. whats going wrong and how to i do it > properly? A paket can only have one sourceport, so the match above can not work. You will have to use one filter for each sport! tc filter add dev eth0 parent 1: protocol ip prio 9 u32 \ match ip sport X 0xffff \ flow id 1:30 tc filter add dev eth0 parent 1: protocol ip prio 9 u32 \ match ip sport Y 0xffff \ flow id 1:30 Greetings, Nils _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/