From owner-freebsd-current@FreeBSD.ORG Fri Jun 15 23:12:37 2007 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D44AF16A400 for ; Fri, 15 Jun 2007 23:12:37 +0000 (UTC) (envelope-from john_m_cooper@yahoo.com) Received: from smtp109.biz.mail.re2.yahoo.com (smtp109.biz.mail.re2.yahoo.com [206.190.53.8]) by mx1.freebsd.org (Postfix) with SMTP id 871F513C4AE for ; Fri, 15 Jun 2007 23:12:37 +0000 (UTC) (envelope-from john_m_cooper@yahoo.com) Received: (qmail 61382 invoked from network); 15 Jun 2007 23:12:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=wTPh74BoNEs/ofOcuSAanzcEQ/nm6RnZc3wGE6wQqFEltELa4+ErGcUW5Ym+h+fdgY/GMsjsYj+NdRvCZcUtY1PjtbubJoZX+Z9FlciF6JXk+RkD7twGZR2LCfla5oWqho7l85Ri/N5tU9tJPwRW3vESqQTbMEzDXPC5NVtQBw0= ; Received: from unknown (HELO borgdemon2.hsd1.md.comcast.net) (j.m.cooper@borgsdemons.com@69.251.16.205 with login) by smtp109.biz.mail.re2.yahoo.com with SMTP; 15 Jun 2007 23:12:36 -0000 X-YMail-OSG: 8VU29FcVM1k3o1rhkoAIOonukiXYyFteJz20gFdWzEBEesA.KVLNAf4n2pQVqs2p5K06tZ388KEfcRnfMrTPi5vtgHln2RXY2b8CFPo2_H.NWNi6cidITUgk7PZrmP_mjjTX12RLz1vsnkU0DiXDcaAA Received: from [127.0.0.1] (localhost [127.0.0.1]) by borgdemon2.hsd1.md.comcast.net (Postfix) with ESMTP id 41A046031; Fri, 15 Jun 2007 19:12:35 -0400 (EDT) Message-ID: <46731CE2.4050001@yahoo.com> Date: Fri, 15 Jun 2007 19:12:34 -0400 From: John Merryweather Cooper User-Agent: Thunderbird 2.0b1pre (X11/20070521) MIME-Version: 1.0 To: Poul-Henning Kamp References: <1626.1181945652@critter.freebsd.dk> In-Reply-To: <1626.1181945652@critter.freebsd.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org Subject: Re: [REVIEW]: add multicast NULL route X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jun 2007 23:12:37 -0000 Poul-Henning Kamp wrote: > On a system without a default route, multicast simply doesn't work. > > This patch adds a route into lo0 for the entire multicast space. > > A similar route were created in /etc/netstart until version 1.32 > where it was moved to sysconfig (1.14) where the incorrect resolution > to conf/1007 commented it out in (1.36) and subsequently it was > lost in the conversion to new rc world ordering. > > As a stylistic feature of this patch, we no longer encroach on the > administrators namespace by prepending a couple of "__" on the > internal magic routes. > > Review and comments please. > > Index: routing > =================================================================== > RCS file: /home/ncvs/src/etc/rc.d/routing,v > retrieving revision 1.143 > diff -u -r1.143 routing > --- routing 2 May 2007 15:49:30 -0000 1.143 > +++ routing 15 Jun 2007 22:03:59 -0000 > @@ -31,12 +31,17 @@ > > static_start() > { > + # The multicast range must be covered by a route, one way or another > + # or multicast will simply not work. > + static_routes="__mcast ${static_routes}" > + route___mcast="-static -net 224.0.0.0/4 -interface lo0" > + > case ${defaultrouter} in > [Nn][Oo] | '') > ;; > *) > - static_routes="default ${static_routes}" > - route_default="default ${defaultrouter}" > + static_routes="__default ${static_routes}" > + route___default="__default ${defaultrouter}" > ;; > esac > Creating this default route for non-gateway machines might be useful for GNOME and KDE machines where some of the utility programs want multicast access. Maybe put this in a startup script GNOME and KDE could share? I've got mine in rc.local. I like using lo0 instead of my outside interface for the static route. However, it occurs to me that the uninitiated could be frustrated by default firewall settings. In particular, the 224.0.0.0/4 isn't going to pass through anti-spoofing rules for lo0. jmc