From: "riffraff" Subject: Re: trying to get one blessed thing to work Date: Mon, 8 Jul 2002 11:48:28 -0500 Sender: netfilter-admin@lists.samba.org Message-ID: <200207081148.AA469041392@mail.ev1.net> Reply-To: Mime-Version: 1.0 Return-path: Errors-To: netfilter-admin@lists.samba.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Netfilter Mailing List ---------- Original Message ---------------------------------- From: Mark Tessier Date: Mon, 8 Jul 2002 12:32:23 -0400 >The first thing I did was to set the policy to drop for the forward chain as in: > >iptables --policy FORWARD DROP > >Next, I tried to open one door on the forward chain, allowing icmp packets of the echo request type to ping any other machine as in: > >iptables -A FORWARD -o eth0 -p icmp --icmp-type echo-request -s 192.168.0.0/24 -m state --state NEW -j ACCEPT > >The result is, it doesn't work. > No, it won't You aren't letting the return packet of echo-reply back through. I would do it with this: iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT You could add the interface and protocol if you'd like. >Thanks, > >Mark > > lance