From owner-freebsd-net Sun Feb 3 10:56: 2 2002 Delivered-To: freebsd-net@freebsd.org Received: from harrier.prod.itd.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by hub.freebsd.org (Postfix) with ESMTP id F15ED37B405; Sun, 3 Feb 2002 10:55:54 -0800 (PST) Received: from user-33qtm5o.dialup.mindspring.com ([199.174.216.184] helo=gohan.cjclark.org) by harrier.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16XRnr-0004t9-00; Sun, 03 Feb 2002 10:55:53 -0800 Received: (from cjc@localhost) by gohan.cjclark.org (8.11.6/8.11.1) id g13ItWI00820; Sun, 3 Feb 2002 10:55:32 -0800 (PST) (envelope-from cjc) Date: Sun, 3 Feb 2002 10:55:31 -0800 From: "Crist J. Clark" To: Mikhail Teterin Cc: freebsd@gndrsh.dnsmgr.net, rwatson@FreeBSD.org, pst@pst.org, jlemon@flugsvamp.com, net@FreeBSD.org Subject: Re: cvs commit: src/sys/netinet ip_output.c Message-ID: <20020203105531.B167@gohan.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <200202031124.DAA29764@gndrsh.dnsmgr.net> <200202031833.g13IXrQ09017@aldan.algebra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200202031833.g13IXrQ09017@aldan.algebra.com>; from mi@aldan.algebra.com on Sun, Feb 03, 2002 at 01:33:50PM -0500 X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, Feb 03, 2002 at 01:33:50PM -0500, Mikhail Teterin wrote: > [Moved to -net] > > On 3 Feb, Rodney W. Grimes wrote: > > > Almost everyone forgets to configure a reject route for 127/8, ie > > route add -net 127 127.0.0.1 -reject > [...] > > IIRC this route was automatically created at one time in BSD history, > > Is not /etc/defaults/rc.conf a good place for this now? Like: > > -static_routes="" > +static_routes=127 > +route_127="-net 127 127.0.0.1 -reject" > > A note in the release notes and UPDATING will also be needed, I guess. The system does, # ifconfig lo0 127.0.0.1 By default. This gives, # ifconfig lo0 lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 Look at the netmask. IMHO, you should not have to add an explicit route to keep 127.0.0.2 from finding its way out through the default route. I would naively expect to get "host is down" when I ping 127.0.0.2. Something is broken now. Like someone else in the thread already mentioned, there is probably some really complicated history behind how this has come to be, but it sure looks broken now. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message