Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "David Gaudine" <david@annette.concordia.ca>
To: netfilter@lists.netfilter.org
Subject: RELATED is not recognized
Date: Sun, 4 May 2003 16:05:59 -0400	[thread overview]
Message-ID: <001101c31278$94dc0ad0$0432cd84@sleepy> (raw)

When I try this line
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
the response is
iptables: No chain/target/match by that name

I am using kernel 2.4.20 and iptables 1.2.8, and have included these
options:
CONFIG_IP_NF_CONNTRACK=y
CONFIG_IP_NF_FTP=y
CONFIG_IP_NF_IPTABLES=y
CONFIG_IP_NF_FILTER=y

If I shorten the command to
iptables -A INPUT -m state --state -j ACCEPT
(which is obviously invalid) the error message is
iptables v1.2.8: Bad state `-j'
which shows that "-m state" and "--state" are recognized, only the part
about
ESTABLISHED,RELATED
is unrecognized.  Why is this?  Is there another kernel options that I
should have included?

Also, I'd love to see a working example of using iptables to handle ftp
connections.  The above line doesn't seem quite right; for one thing, it
doesn't specifically mention that it's for ftp.  Should I have an INPUT and
an OUTPUT line that both specify port 20 and the connection tracking?

I was quite pleased that I was able to get my firewall working without
flooding you people with questions, until I noticed that ftp wasn't working.
Silly me, during my early testing I tested ftp just by establishing a
connection and quitting, it didn't occur to me to try to transfer a file.

David



             reply	other threads:[~2003-05-04 20:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-04 20:05 David Gaudine [this message]
2003-05-04 23:16 ` RELATED is not recognized Julius Wijaya
2003-05-05 13:13   ` David Gaudine

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='001101c31278$94dc0ad0$0432cd84@sleepy' \
    --to=david@annette.concordia.ca \
    --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