From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabian Hartmann Subject: Re: problem with forward/nat Date: Sun, 7 Mar 2004 19:24:00 +0100 Sender: netfilter-admin@lists.netfilter.org Message-ID: <1078683840.404b68c0641ac@realdealz.ch> References: Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: 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: netfilter@lists.netfilter.org Cc: Pierre Gillet > hello, > Hi Pierre > #forward > > iptables -A FORWARD -s 192.168.1.0/24 -j ACCEPT -o eth0 The rule above won't work! you must set the -o flag before you set the -j i. e. iptables -A FORWARD -o eth0 -s 192.168.1.0/24 -j ACCEPT Otherwise the rule won't be accepted by iptables and you have no rule that accepts forwarded traffic when the default policy for the FORWARD chain is set to DROP. --- Fabian Hartmann realdeal@realdealz.ch www.realdealz.ch