From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Chemko Subject: Re: IPTABLES Nightmare - Save Me Date: Mon, 04 Aug 2003 17:22:12 -0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3F2EF8B4.9090303@smgtec.com> References: <3F2EEFA2.4040208@flashmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3F2EEFA2.4040208@flashmail.com> 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"; format="flowed" To: dalive@flashmail.com Cc: netfilter@lists.netfilter.org The input chain is only used for packets destined for the firewall itself. If the NAT tells the firewall that the packets are going to pass through the machine to another conputer, the FORWARD chain is thn passed through, NOT the INPUT. Option 1. Change: $IPTABLES -A tcp_packets -p TCP -s 0/0 --dport 8080 -j ACCEPT To: $IPTABLES -A FORWARD -p TCP -s 0/0 --dport 8080 -j ACCEPT Option 2. What you are really looking for is to direct traffic from the FORWARD chain to the tcp_packets chain: $IPTABLES -A FORWARD -p tcp -j tcp_packets