From owner-freebsd-questions Thu Feb 27 01:18:37 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA14015 for questions-outgoing; Thu, 27 Feb 1997 01:18:37 -0800 (PST) Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA14004 for ; Thu, 27 Feb 1997 01:18:35 -0800 (PST) Received: from gil.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12) with ESMTP id KAA27935; Thu, 27 Feb 1997 10:19:09 +0100 (MET) Received: (from kuku@localhost) by gil.physik.rwth-aachen.de (8.8.4/8.6.9) id KAA17835; Thu, 27 Feb 1997 10:23:45 +0100 (MET) From: Christoph Kukulies Message-Id: <199702270923.KAA17835@gil.physik.rwth-aachen.de> Subject: Re: forwarding broadcast packets between interfaces In-Reply-To: from Doug White at "Feb 26, 97 07:09:53 pm" To: dwhite@resnet.uoregon.edu Date: Thu, 27 Feb 1997 10:23:44 +0100 (MET) Cc: kmitch@weenix.guru.org, questions@freebsd.org Reply-To: Christoph Kukulies X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > On Wed, 26 Feb 1997, Keith Mitchell wrote: > > > Is there any way to forward broadcast packets between interfaces?? > > > > I would like to be able to browse the windows machines on the other side > > of the gateway with a windows machine behind the gateway. The problem is > > the windows machine doesn't get the broadcasts so it doesn't know they are > > there. Otherwise, it can connect to them fine. It is using Netbios over > > TCPIP (NetBT). > > > > Also, it would be nice if I could echo the rwho packets to the local subnet > > as well. > > Perhaps; try setting gateway=YES in /etd/sysconfig then add the proper > routes. No, this won't work. broadcasts are UDP packets which are not routed by a gateway (normally). There may be a way to tell the kernel (with an option) to do UDP routing. I remember that Garrett (or David Greenman) once gave me that tip. > > > I would like to do this on a per-service basis though. ie I don't want to > > forward ALL of the broadcast messages just ones on certain ports. > > You'd have to set up IPFilter or ipfw and filter out the packets you don't > want. (?) > > Doug White | University of Oregon > Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant > http://gladstone.uoregon.edu/~dwhite | Computer Science Major > > -- Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de