From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Alexis" Subject: Re: opening connection for Tomcat Date: Thu, 8 Apr 2004 22:05:59 -0300 Sender: netfilter-admin@lists.netfilter.org Message-ID: <001101c41dce$d2b5ba10$51a2fea9@heretic> References: <40756C19.3010606@tin.it> <006f01c41d86$c82d6d60$51a2fea9@heretic> <1081446600.2453.63.camel@katala.sterenborg.info> <4075B24D.1020601@tin.it> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: 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: Gianni Pucciani Cc: netfilter oh, i thought you mean all addresses with 0.0.0.0 (as an example) and not you was setting the rule with explicilt 0.0.0.0 doing this, you are saying 0.0.0.0/32 , this means only this IP address. For match all ip addresses, leave the modif (-d) without set or use 0.0.0.0/0 regards ----- Original Message ----- From: "Gianni Pucciani" To: "Rob Sterenborg" Cc: "Netfilter" Sent: Thursday, April 08, 2004 5:13 PM Subject: Re: opening connection for Tomcat > Ok, I've fixed the problem: it seems that the address 0.0.0.0 is no good. > > Many thanks > > Gianni > Rob Sterenborg wrote: > > >On Thu, 2004-04-08 at 18:30, Alexis wrote: > > > > > >>you must change to OUTPUT the first rule at least. you're filtering all > >>outgoing packets. > >> > >> > >> > > > >In these rules I only see policy ACCEPT for the OUTPUT chain, so IMHO > >there's no filtering there. > > > > > > > >>>Hi all, > >>>I was in trouble opening a port for services with tomcat: > >>>Is this rule right? I'm behind an adsl router that forward every > >>>connection on port 8080 to . > >>> > >>>iptables -P INPUT DROP > >>>iptables -P OUTPUT ACCEPT > >>>iptables -P FORWARD DROP > >>> > >>>iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT > >>>iptables -A INPUT -p tcp -d --dport 8080 -s 0.0.0.0 -m > >>>state --state NEW -j ACCEPT > >>> > >>> > > > >Is your Tomcat listening on 8080/tcp ? (netstat -an|grep 8080) > >Are you sure that your router is forwarding all connections ? > > > >Check with a logging rule between the -m state and the -p tcp rules to > >see what's going on (if there is) : > > > >iptables -A INPUT -j LOG --log-prefix "_ipt:check" > > > > > >Gr, > >Rob > > > > > > > > > > > > > > >