From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Brenton Subject: Re: IPTABLES syntax problem. Date: Tue, 23 Dec 2003 08:19:40 -0500 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1072185580.3572.350.camel@grendel> References: <20031223114701.977.qmail@web60405.mail.yahoo.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20031223114701.977.qmail@web60405.mail.yahoo.com> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: ads nat Cc: netfilter@lists.netfilter.org On Tue, 2003-12-23 at 06:47, ads nat wrote: > Hi, > I am trying to setup IPTABLES rules. I am newbe to > this. > > One of the rule in filter table is > ####### > -A INPUT -p tcp ! --syn -m state --state NEW -j LOG > --log-prefix "New not syn:" Try: iptables -A INPUT -p tcp ! --tcp-flags SYN SYN -m state --state NEW -j LOG --log-prefix " New not syn: " Note the change in specifying flags from ipchains to iptables. Also note I added spaces around your prefix. This will make it easier to read in the logs. HTH, C