From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin BOIE Date: Mon, 14 Apr 2003 10:19:49 +0000 Subject: Re: [LARTC] how can i filter for a range of ports? 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 On Mon, 14 Apr 2003, Adam Schrader wrote: > how can i filter for a range of ports? I have seen people use 1024:32000 > when saying from port 1024 to 32000 but tc doesnt accept this? can > somebody tell me how i can do this? -thanks You cannot easyly do this, but there is a solution: You can use a mask != 0xffff for ports. Very probably you must use several lines to cover whole range. So, as an example, for 1024 -> 1279 (1024 + 256 - 1) you can use match tcp sport 1024 0xff00. For 4096 -> 65535 you can use: match tcp sport 4096 0xf000 I think you get the idea. Or you can just use marking. > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, and more --- Catalin(ux) BOIE catab@deuroconsult.ro _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/