From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Subject: Re: iptables v1.3.4: STRING match: You must specify `--algo' Date: Tue, 08 Nov 2005 02:01:06 +0100 Message-ID: <436FF8D2.3070101@eurodev.net> References: <1131367085.11452.9.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1131367085.11452.9.camel@localhost.localdomain> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: jasbir.k@gmail.com Cc: netfilter@lists.netfilter.org Jasbir Khehra wrote: > Hi, > while running this command > # iptables -t nat -I PREROUTING -p tcp -s 192.168.2.20 -m string > --hex-string '0d0a0d0a594d5347' -j REJECT > > Not able to get the different options for '--algo' parameter . > Kernel 2.6.14 iptables v1.3.4 thanks - Jasbir --algo [bm|kmp] bm: Boyer-Moore kmp: Knuth-Pratt-Morris Those are the algorithm implemented at the moment. BTW, you should do that in the raw table, not nat. Nobody should use the nat table for filtering purposes. -- Pablo