From owner-freebsd-bugs Mon Sep 24 11:50:18 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id EB5B337B411 for ; Mon, 24 Sep 2001 11:50:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8OIo5K34742; Mon, 24 Sep 2001 11:50:05 -0700 (PDT) (envelope-from gnats) Date: Mon, 24 Sep 2001 11:50:05 -0700 (PDT) Message-Id: <200109241850.f8OIo5K34742@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: "Scot W. Hetzel" Subject: Re: misc/30792: traffic destined for 127/8 addresses should be kept off the network Reply-To: "Scot W. Hetzel" Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/30792; it has been noted by GNATS. From: "Scot W. Hetzel" To: , Cc: Subject: Re: misc/30792: traffic destined for 127/8 addresses should be kept off the network Date: Mon, 24 Sep 2001 13:40:27 -0500 This is a multi-part message in MIME format. ------=_NextPart_000_021D_01C144FE.78411E40 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Another alternative to patching rc.network, is to define static_routes and add route_loopback to etc/defaults/rc.conf (see attached patch). We may also need do this for IPv6's loopback network. Scot ------=_NextPart_000_021D_01C144FE.78411E40 Content-Type: application/octet-stream; name="loopback.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="loopback.patch" Index: rc.conf=0A= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A= RCS file: /home/ncvs/src/etc/defaults/rc.conf,v=0A= retrieving revision 1.53.2.40=0A= diff -u -r1.53.2.40 rc.conf=0A= --- rc.conf 2001/09/14 17:28:11 1.53.2.40=0A= +++ rc.conf 2001/09/24 17:47:42=0A= @@ -190,7 +190,7 @@=0A= =0A= ### Network routing options: ###=0A= defaultrouter=3D"NO" # Set to default gateway (or NO).=0A= -static_routes=3D"" # Set to static route list (or leave empty).=0A= +static_routes=3D"loopback" # Set to static route list (or leave empty).=0A= gateway_enable=3D"NO" # Set to YES if this host will be a gateway.=0A= router_enable=3D"NO" # Set to YES to enable a routing daemon.=0A= router=3D"routed" # Name of routing daemon to use if enabled.=0A= @@ -204,6 +204,10 @@=0A= forward_sourceroute=3D"NO" # do source routing (only if gateway_enable = is set to "YES")=0A= accept_sourceroute=3D"NO" # accept source routed packets to us=0A= =0A= +# static route list.=0A= +route_loopback=3D"-net 127 -netmask 255.0.0.0 -iface lo0 -blackhole"=0A= +ipv6_route_loopback=3D"Add example IPv6 loopback route"=0A= +=0A= ### ATM interface options: ###=0A= atm_enable=3D"NO" # Configure ATM interfaces (or NO).=0A= #atm_netif_hea0=3D"atm 1" # Network interfaces for physical interface.=0A= ------=_NextPart_000_021D_01C144FE.78411E40-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message