Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "B. James Phillippe" <bryan@terran.org>
To: axp-list@redhat.com
Subject: Re: Q: Switch off ip_forward ?
Date: Mon, 24 Apr 2000 23:58:34 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.10.10004242351170.11637-100000@neptune.terran> (raw)
In-Reply-To: <20000425062831.22795.qmail@web1605.mail.yahoo.com>

On Mon, 24 Apr 2000, Michael Hennecke wrote:

> Hello.
> 
> I'm building a firewall on a RH 6.1 System using the
> Firewall-HOWTO.
> 
> So far I compiled a new kernel and tried to enable and
> disable ip_forward
> (echo x > /proc/sys/net/ipv4/ip_forward).
> But the echo 0 command doesn't work. I can always ping
> the external network card from a computer on the
> inside.
> Do you have an explanation for this behavior ?

Reaching an address that is part of the router/firewall is not considered
routing because the packet does not traverse the forwarding chain (and it
does not leave or even enter the destination NIC's transmit routine).
You'll see that you cannot access hosts _beyond_ the firewall (try it), but
if you have allowed access to one interface, you have allowed access to
all, unless you explicitly set up an input chain for that
address/interface.

In short: the packet isn't really going _through_ the router, it's going
_to_ it.

BTW, this question is better suited for linux-kernel@vger.rutgers.edu, or
any of the firewall mailing lists (the addresses of which I do not have on
hand).

cheers,
-bp
--
# bryan at terran dot org
# http://www.terran.org/~bryan


  reply	other threads:[~2000-04-25  6:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-25  6:28 Q: Switch off ip_forward ? Michael Hennecke
2000-04-25  6:58 ` B. James Phillippe [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-04-25 11:07 Michael Hennecke
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox