Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 1998 11:25:18 -0700 (PDT)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Forrest Aldrich <forrie@navinet.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Masquerading issues
Message-ID:  <Pine.BSF.3.96.980520111923.28576Y-100000@gdi.uoregon.edu>
In-Reply-To: <199805192137.RAA09276@dns.navinet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980520111923.28576Y-100000>