From owner-freebsd-questions Tue Oct 7 02:49:37 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA13394 for questions-outgoing; Tue, 7 Oct 1997 02:49:37 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA13389 for ; Tue, 7 Oct 1997 02:49:31 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id TAA29506; Tue, 7 Oct 1997 19:19:25 +0930 (CST) Message-ID: <19971007191925.33484@lemis.com> Date: Tue, 7 Oct 1997 19:19:25 +0930 From: Greg Lehey To: andrewb@mpa.oz.au Cc: FreeBSD Questions Subject: Re: gateway problems References: <9710071712.aa08740@melsvr.mpa.oz.au> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.84e In-Reply-To: <9710071712.aa08740@melsvr.mpa.oz.au>; from andrewb@mpa.oz.au on Tue, Oct 07, 1997 at 04:09:41PM +0000 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8250 Fax: +61-8-8388-8250 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Fight-Spam-Now: http://www.cauce.org Sender: owner-freebsd-questions@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk (following up to -questions) On Tue, Oct 07, 1997 at 04:09:41PM +0000, andrewb@mpa.oz.au wrote: > Hey, > > I'm currently trying to configure a 2.2.2 as a gateway box for win95 > pc's. > > A bit of background: The FreeBSD box has 2 network interfaces > ed0 (inet 203.17.42.140, netmask 255.255.255.0) & ed1 (inet > 192.168.141.130, netmask 255.255.255.0). I can verify that these are > working correctly. > > The ed0 interface is on a real world subnet (connects via router/ISDN > to our ISP), and our ed1 is an inhouse subnet. > > The current config does not allow win95 pc's access to the internet, > although the FreeBSD box does, and I have the GATEWAY="YES" option in > rc.conf. > > I also am using routed, although Im not sure of the difference b/w > that and gated, and when either should be used. I have successfully > configured a FreeBSD 2.2.1 box as a internet gateway using ppp/ed0 > and have had no difficulties. Can somebody point me to where I am going > wrong? First, as Jörg said, disable routed. You don't need to run a routing protocol unless you have at least two different connections to the Internet, and even then it's dubious. Secondly, you'll need to run some kind of aliasing. If you're running User ppp (program ppp, interface tun0), you can do this with the option -alias. If you're running kernel ppp (pppd), you'll need to run something like natd as well. If this doesn't make too much sense, I can give you some review documents to put through their paces. Reply privately. Greg