Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Chris Brenton <cbrenton@chrisbrenton.org>
To: ads nat <adsnat@yahoo.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: IPTABLES syntax problem.
Date: Tue, 23 Dec 2003 08:19:40 -0500	[thread overview]
Message-ID: <1072185580.3572.350.camel@grendel> (raw)
In-Reply-To: <20031223114701.977.qmail@web60405.mail.yahoo.com>

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




  parent reply	other threads:[~2003-12-23 13:19 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-23 11:47 IPTABLES syntax problem ads nat
2003-12-23 12:31 ` Jan Kaastrup
2003-12-23 12:38   ` Antony Stone
2003-12-23 12:58   ` ads nat
2003-12-23 13:19 ` Chris Brenton [this message]
2003-12-23 13:37   ` ads nat
2003-12-23 13:51     ` Cedric Blancher
2003-12-23 15:06     ` Chris Brenton
2003-12-23 15:30       ` ads nat
2003-12-23 15:38         ` Antony Stone
2003-12-23 13:48   ` Cedric Blancher
2003-12-23 13:56     ` ads nat
2003-12-23 14:57       ` Cedric Blancher
2003-12-23 16:26         ` ads nat
2003-12-23 16:27         ` ads nat
2003-12-23 14:00 ` Jeffrey Laramie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1072185580.3572.350.camel@grendel \
    --to=cbrenton@chrisbrenton.org \
    --cc=adsnat@yahoo.com \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox