From owner-freebsd-current Wed Feb 13 15:57:51 2002 Delivered-To: freebsd-current@freebsd.org Received: from swan.prod.itd.earthlink.net (swan.mail.pas.earthlink.net [207.217.120.123]) by hub.freebsd.org (Postfix) with ESMTP id 04F8C37B41D; Wed, 13 Feb 2002 15:57:44 -0800 (PST) Received: from pool0084.cvx21-bradley.dialup.earthlink.net ([209.179.192.84] helo=mindspring.com) by swan.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16b9HS-0002b8-00; Wed, 13 Feb 2002 15:57:43 -0800 Message-ID: <3C6AFD6D.9ED1190A@mindspring.com> Date: Wed, 13 Feb 2002 15:57:33 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Ruslan Ermilov Cc: Garrett Wollman , current@FreeBSD.ORG Subject: Re: rdr 127.0.0.1 and blocking 127/8 in ip_output() References: <20020213110347.C46245@sunbay.com> <200202131550.g1DFoDh41696@khavrinen.lcs.mit.edu> <20020213175851.A22977@sunbay.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Ruslan Ermilov wrote: > On Wed, Feb 13, 2002 at 10:50:13AM -0500, Garrett Wollman wrote: > > < said: > > > > > Please test with and without this patch. > > > > I continue to believe that this should be done by fixing the routing, > > not by adding additional hacks to the already-bloated ip_output() > > path. > > > BSD always had these "hacks" (rfc1122 requirements) in in_canforward(). > RFC1122 requires the host to not send 127/8 addresses out of loopback, > whether or not its routes are set up correctly. I pretty much agree with Garrett on this one. Loopback is a special critter; it has all sorts of requirements, like not ARP'ing for addresses configured on it (otherwise FreeBSD is not usable for DSR, which I think it currently is not), etc.. It looks to me that this should be handled some place other than ip_output(). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message