Hi Sthu,

On Fri, Jul 13, 2012 at 02:53:30PM +0700, Sthu Deus wrote:

> This does not work for me:
> 
> /sbin/iptables -I INPUT 4 -p tcp -m tcp --dport 25 -m state NEW -m recent 
> --update --seconds 60 --hitcount 10 -j LOG --log-prefix INPUT-EXTRA_SMTP-> 
> --log-level 1
  /sbin/iptables -I INPUT 4 -p tcp -m tcp --dport 25 -m state --state NEW -m 
recent --update --seconds 60 --hitcount 10 -j LOG --log-prefix 
INPUT-EXTRA_SMTP-> --log-level 1

Hint:
the ">" needs to be escaped on the commandline:

/sbin/iptables -I INPUT 4 -p tcp -m tcp --dport 25 -m state --state NEW -m 
recent --update --seconds 60 --hitcount 10 -j LOG --log-prefix 
INPUT-EXTRA_SMTP-\> --log-level 1

> giving this error:
> 
> Bad argument `NEW'
> 
> According to man, it is correct. Please advice how I can accomplish
> this. OR Is it a bug and should be reported?


Ciao
-- 
Rainer Nagel, freenet Datenkommunikations GmbH   [email protected]
WillstätterStr. 13, D-40549 Düsseldorf           Tel.: +49 211 53087 423
Geschäftsführung: Stephan Esch, Nicolas Tetau    Fax.: +49 211 53087 500
Sitz der Gesellschaft: Hamburg            HRB 88147, Amtsgericht Hamburg

Attachment: pgp8vP27D7niP.pgp
Description: PGP signature

Reply via email to