From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Julius Wijaya" Subject: Re: RELATED is not recognized Date: Mon, 05 May 2003 06:16:58 +0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <200305050616580441.028BA0E6@smtp.nikonbw.com> References: <001101c31278$94dc0ad0$0432cd84@sleepy> Reply-To: wijayaj@gmx.net Return-path: In-Reply-To: <001101c31278$94dc0ad0$0432cd84@sleepy> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: netfilter@lists.netfilter.org 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