Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Bernd Podey <Bernd.Podey@gmx.de>
To: "Gabriel Güeto" <gabriel.gueto@rhodasol.turimar.es>
Cc: netfilter@lists.netfilter.org
Subject: Re: Problem with iptables -A FORWARD -j DROP
Date: Thu, 20 Feb 2003 12:37:45 +0100	[thread overview]
Message-ID: <3E54BE09.30509@gmx.de> (raw)
In-Reply-To: 002d01c2d819$2746d250$04000059@INFORMATICA

Gabriel Güeto wrote:
> Hello, I'm installing a bridge-firewall an all is OK, but whe I deny all 
> the 'FORWARD' traffic this rule deny all the traffic included the 
> 'ACCEPT' rules. Mi Kernel is 2.4.18
> and i installed itables 1.2.5-3. My script is:
>  
> iptables -F FORWARD
> iptables -F INPUT
> iptables -F OUTPUT
>  
> iptables -A FORWARD -p icmp -s 89.0.0.0/24 -d 89.0.0.55/32 -j ACCEPT
>  
> iptables -A FORWARD -j DROP
>  
>  
>  
> If I quit the las line it's all OK, if I deny 'ping' it's OK, but if I 
> put the last line all ping are deny.
>  
> Can somebody help me. I'm sorry for mu poor English.
>  
> Gabriel.
Hello!

You have to allow both communication directions!

Try the following:
iptables -A FORWARD -p icmp -s 89.0.0.0/24 -d 89.0.0.55/32 -j ACCEPT
iptables -A FORWARD -p icmp -s 89.0.0.55/32 -d 89.0.0.0/24 -j ACCEPT

iptables -A FORWARD -j DROP

and everything will work fine

Bernd



  reply	other threads:[~2003-02-20 11:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-19 13:16 Problem with iptables -A FORWARD -j DROP Gabriel Güeto
2003-02-20 11:37 ` Bernd Podey [this message]
     [not found] <FD8F124A387AD6119F7900A0D218B321725479@hslex01.hslbz.local>
2003-02-20 12:41 ` Rob Sterenborg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E54BE09.30509@gmx.de \
    --to=bernd.podey@gmx.de \
    --cc=gabriel.gueto@rhodasol.turimar.es \
    --cc=netfilter@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox