From owner-freebsd-stable Wed Nov 10 18:25:41 1999 Delivered-To: freebsd-stable@freebsd.org Received: from andrsn.stanford.edu (andrsn.Stanford.EDU [36.33.0.163]) by hub.freebsd.org (Postfix) with ESMTP id 253C814C8C for ; Wed, 10 Nov 1999 18:25:17 -0800 (PST) (envelope-from andrsn@andrsn.stanford.edu) Received: from localhost (andrsn@localhost.stanford.edu [127.0.0.1]) by andrsn.stanford.edu (8.9.3/8.9.1) with ESMTP id SAA57357; Wed, 10 Nov 1999 18:18:44 -0800 (PST) Date: Wed, 10 Nov 1999 18:18:44 -0800 (PST) From: Annelise Anderson To: Michael Steinfeld Cc: freebsd-stable@FreeBSD.ORG Subject: Re: sharing a single modem connection with natd. In-Reply-To: <001201bf2b8f$cd2820a0$86a9e0d0@sprawlnet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You probably need to fill out /etc/resolv.conf on the FreeBSD box, so it knows where to find the nameserver you want to use. Maybe some entries in /etc/hosts would help too. But, for what you're doing you really don't need the kernel firewall stuff or natd. ppp -alias or ppp -nat (same thing) will do it for you. Annelise On Wed, 10 Nov 1999, Michael Steinfeld wrote: > I have 2 computers in my home network. One of them is running FreeBSD 3.3-Stable and the other Linux SuSE 6.1 > > THe FreeBSD box has the modem in it which connects to my ISP and is assigned a dynamic IP. > > FreeBSD - pn0 is assigned 192.168.0.98 > Linux - eth0 (rl0) is assigned 192.168.0.99 > > I set up natd as follows: > > 1) Compiled in options ipfirewall ipdivert in a new kernel > 2) added natd_enable="YES" firewall_enable="YES" gateway_enable="YES" in rc.conf > 3) I edited /etc/services natd 8668/divert > > # now i know this shouldnt be very difficult but there must be something i am over-looking. > > After i compiling the new kernel ,editing the files i restarted my Freebsd box. > > after using ' ppp -alias my-isp ' i run ' natd -interface tun0 ' > > The freebsd box is connected to the internet at this point, but the linux box isnt. I set eth0 to use pn0's address as the gateway. > what i ultimately want to do is share the one internet connection for both box's. > > ( Yes, both box's are talking to one another) > > if i issue ' nslookup ' on the linux box after a considerable amount of time > i get an error message something similar to *** cant get name of 196.1.6.8 > which 196.1.6.8 happens to be the nameserver of my isp. > > > Any suggestions would greatly be appreciated. > > > > Michael Steinfeld | The only good is knowledge and the only evil ignorance. --Socrates > Unix Administrator | mike@sprawlnet.com // Salute to JGB and The Boys .. still going down that road. > Sprawlnet.com INC > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message