From owner-freebsd-questions Wed May 20 11:25:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA19231 for freebsd-questions-outgoing; Wed, 20 May 1998 11:25:47 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA19164 for ; Wed, 20 May 1998 11:25:28 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.8/8.8.8) with SMTP id LAA28803; Wed, 20 May 1998 11:25:18 -0700 (PDT) (envelope-from dwhite@gdi.uoregon.edu) Date: Wed, 20 May 1998 11:25:18 -0700 (PDT) From: Doug White Reply-To: Doug White To: Forrest Aldrich cc: freebsd-questions@FreeBSD.ORG Subject: Re: Masquerading issues In-Reply-To: <199805192137.RAA09276@dns.navinet.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 19 May 1998, Forrest Aldrich wrote: > It mentioned using NATD, which I'm not familiar with, but I was curious if > this was the only approach... or preferred. If you are going over a PPP connection it's easier to use ppp -alias, but otherwise you have to use ipfw/natd. > I have a cable modem which receives a dynamic IP address from the cable > company, so, I have to devise a means such that the gateway machine I > create will go out to the cable modem (like Windoze95 does) look for the > dhcp broadcast, get the IP address, set it, and then do IP masquerading. I > figured I would create an RFC network internally and run dhcpd on that > gateway so that my Windoze boxes will just boot up when on the LAN. That sounds like a good way although if you have a small homenet you can just static everything. You can get a DHCP client for FreeBSD from the isc-dhcp2 port. For our homenet I plan on running DHCP, but we have 12 computers between three of us and we will no doubt have guests. :) Actually doing this is really easy: 1. Buy another ethernet card if you haven't already. Configure it for the homenet side. 2. Install the isc-dhcp2 port to get dhclient. Set up dhclient to run on the cable modem interface only (`dhclient de0` or whatever you have) 2. Set up natd as described in the natd(8) manpage, section `RUNNING NATD'. 3. Reboot to test and enjoy. Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message