Re: An state argument.

Rainer Nagel <[email protected]> Fri, 13 Jul 2012 10:04:27 +0200
Newsgroups gmane.linux.debian.devel.firewall
Message-ID <[email protected]>
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
signature.asc (application/pgp-signature, 190 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iD8DBQFP/9aLtQLHqnxMUgYRAv+YAJ0V2e7xA8UJZOJQH8Gr8dN9DDKy6ACdGU5v
kUFFrM1fJ6OCsfX1TEQkalY=
=+L33
-----END PGP SIGNATURE-----