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       |  [EMAIL PROTECTED]    // Salute to JGB and The Boys .. 
>still going down that road.
> Sprawlnet.com INC     
> 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message

Reply via email to