From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 25061 invoked from network); 25 Apr 2000 06:58:36 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 25 Apr 2000 06:58:36 -0000 Received: from terran.org (root@earth.terran.org [216.39.144.215]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id CAA06849 for ; Tue, 25 Apr 2000 02:58:36 -0400 Received: from neptune.terran (IDENT:root@neptune.terran [192.168.2.8]) by terran.org (8.9.3/8.9.3) with ESMTP id XAA25493 for ; Mon, 24 Apr 2000 23:58:34 -0700 Received: from localhost (bryan@localhost) by neptune.terran (8.9.3/8.9.4) with ESMTP id XAA11796 for ; Mon, 24 Apr 2000 23:58:34 -0700 X-Authentication-Warning: neptune.terran: bryan owned process doing -bs Date: Mon, 24 Apr 2000 23:58:34 -0700 (PDT) From: "B. James Phillippe" Sender: bryan@terran.org To: axp-list@redhat.com Subject: Re: Q: Switch off ip_forward ? In-Reply-To: <20000425062831.22795.qmail@web1605.mail.yahoo.com> Message-ID: Organization: terran.org/darkforest.org X-Subliminal-Message: Use Linux MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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