Received: with ECARTIS (v1.0.0; list netdev); Tue, 04 Jan 2005 07:12:50 -0800 (PST) Received: from mx03.cybersurf.com (mx03.cybersurf.com [209.197.145.106]) by oss.sgi.com (8.13.0/8.13.0) with ESMTP id j04FCM6Y004421 for ; Tue, 4 Jan 2005 07:12:42 -0800 Received: from mail.cyberus.ca ([209.197.145.21]) by mx03.cybersurf.com with esmtp (Exim 4.30) id 1Cm1as-0005Np-7e for netdev@oss.sgi.com; Tue, 04 Jan 2005 22:12:18 -0500 Received: from cpe0030ab124d2f-cm014500000962.cpe.net.cable.rogers.com ([24.103.99.32] helo=[10.0.0.9]) by mail.cyberus.ca with esmtp (Exim 4.20) id 1Cm1an-0006sZ-Mh; Tue, 04 Jan 2005 22:12:13 -0500 Subject: Re: [RFC] ematch API, u32 ematch, nbyte ematch, basic classifier From: jamal Reply-To: hadi@cyberus.ca To: Thomas Graf Cc: netdev@oss.sgi.com In-Reply-To: <20050104223612.GN26856@postel.suug.ch> References: <20050103125635.GB26856@postel.suug.ch> <20050104223612.GN26856@postel.suug.ch> Content-Type: text/plain Organization: jamalopolous Message-Id: <1104894728.1117.56.camel@jzny.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 04 Jan 2005 22:12:08 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.80/650/Sun Jan 2 19:00:02 2005 clamav-milter version 0.80j on 127.0.0.1 X-Virus-Status: Clean X-archive-position: 13390 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: hadi@cyberus.ca Precedence: bulk X-list: netdev On Tue, 2005-01-04 at 17:36, Thomas Graf wrote: > * TCF_EM_SIMPLE flag which marks an ematch config as simple, meaning > that the data consists of a u32 value. This is 1 of 2 parts i think thats still an issue; otherwise looks very good. Why do i need to signal something as simple? AND why does it have to be 32 bit type - what edge does that give you? I should be able to specify a struct with two 32 bits and encap it in a TLV and the classifier can treat it the same way - it knows the type and length - thats sufficient to create, destroy and dump. The other issue is still on the ematch/match interleaving i.e i should be able to say something along the lines: //simple slammer-worm or code-red ACL detector rule //using u32 classifier and ematches (match ip protocol udp port 1434 AND ematch packetlen minsize 404 maxsize 404) OR (match ip protocol tcp http AND ematch urlscanner "*.ida") action ipt -j ULOG "Virus detected and dropped" action drop Not a very good example - but you can see how powerfull this is when you can quickly use a string scanner such as the one you have as an ematch while maintaining u32 as is. cheers, jamal