* RELATED is not recognized
@ 2003-05-04 20:05 David Gaudine
2003-05-04 23:16 ` Julius Wijaya
0 siblings, 1 reply; 3+ messages in thread
From: David Gaudine @ 2003-05-04 20:05 UTC (permalink / raw)
To: netfilter
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RELATED is not recognized
2003-05-04 20:05 RELATED is not recognized David Gaudine
@ 2003-05-04 23:16 ` Julius Wijaya
2003-05-05 13:13 ` David Gaudine
0 siblings, 1 reply; 3+ messages in thread
From: Julius Wijaya @ 2003-05-04 23:16 UTC (permalink / raw)
To: netfilter
may be the problem is you don't try to use -i option, since you are using
INPUT chain right,
try to use it with that option
iptables -A INPUT -p tcp -m state --state ESTABLISHED,RELATED -i eth0 -s
0/0 -d 0/0 -j ACCEPT
something like the above lines
*********** REPLY SEPARATOR ***********
On 04/05/2003 at 16:05 PM David Gaudine wrote:
>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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RELATED is not recognized
2003-05-04 23:16 ` Julius Wijaya
@ 2003-05-05 13:13 ` David Gaudine
0 siblings, 0 replies; 3+ messages in thread
From: David Gaudine @ 2003-05-05 13:13 UTC (permalink / raw)
To: netfilter
> may be the problem is you don't try to use -i option, since you are using
> INPUT chain right,
> try to use it with that option
Thanks, but it didn't work. However, I withdraw the question, because
(continued below)
> >CONFIG_IP_NF_CONNTRACK=y
> >CONFIG_IP_NF_FTP=y
> >CONFIG_IP_NF_IPTABLES=y
> >CONFIG_IP_NF_FILTER=y
[snip]
> >is unrecognized. Why is this? Is there another kernel options that I
> >should have included?
Actually I missed at least two necessary kernel options. I don't know how I
missed them. I'm having disk problems and can't compile right now, but
let's assume the problem is solved. Because of the disk problems my
incoming mail is also down, so thanks to anyone else who sent solutions that
didn't get through yet.
David
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-05-05 13:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-04 20:05 RELATED is not recognized David Gaudine
2003-05-04 23:16 ` Julius Wijaya
2003-05-05 13:13 ` David Gaudine
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).