From owner-freebsd-stable Wed Nov 10 7:27:47 1999 Delivered-To: freebsd-stable@freebsd.org Received: from ns1.sprawlnet.com (ns1.sprawlnet.com [208.224.169.130]) by hub.freebsd.org (Postfix) with ESMTP id 6D98514DDA for ; Wed, 10 Nov 1999 07:27:34 -0800 (PST) (envelope-from mike@sprawlnet.com) Received: from jedi (jedi.sprawlnet.com [208.224.169.134]) by ns1.sprawlnet.com (8.9.3/8.9.2) with SMTP id XAA14615 for ; Wed, 10 Nov 1999 23:29:07 GMT (envelope-from mike@sprawlnet.com) Message-ID: <001201bf2b8f$cd2820a0$86a9e0d0@sprawlnet.com> From: "Michael Steinfeld" To: Subject: sharing a single modem connection with natd. Date: Wed, 10 Nov 1999 10:25:17 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000F_01BF2B65.E1EA6770" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_000F_01BF2B65.E1EA6770 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have 2 computers in my home network. One of them is running FreeBSD = 3.3-Stable and the other Linux SuSE 6.1 =20 THe FreeBSD box has the modem in it which connects to my ISP and is = assigned a dynamic IP.=20 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=3D"YES" firewall_enable=3D"YES" = gateway_enable=3D"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=20 which 196.1.6.8 happens to be the nameserver of my isp.=20 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 =20 ------=_NextPart_000_000F_01BF2B65.E1EA6770 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have 2 computers in my home network. One of them = is running=20 FreeBSD 3.3-Stable and the other Linux SuSE 6.1
 
THe FreeBSD box has the modem in it which connects = to my ISP=20 and is assigned a dynamic IP.
 
FreeBSD -  pn0 is assigned = 192.168.0.98
Linux -       eth0=20 (rl0) is assigned 192.168.0.99
 
I set up natd as follows:
 
1) Compiled in options ipfirewall ipdivert in a = new=20 kernel
2) added natd_enable=3D"YES" firewall_enable=3D"YES" = gateway_enable=3D"YES" in rc.conf
3) I edited /etc/services   natd  =20 8668/divert
 
 # now i know this shouldnt be very difficult = but there=20 must be something i am over-looking.
 
After i compiling the new kernel ,editing the files = i=20 restarted my Freebsd box.
 
after using ' ppp -alias my-isp ' i run ' natd = -interface tun0=20 '
 
The freebsd box is connected to the internet at this = point,=20 but the linux box isnt. I set eth0 to use pn0's address as the=20 gateway.
what i ultimately want to do is share the one = internet=20 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=20 amount of time
i get an error message something similar to  = *** cant get=20 name of 196.1.6.8
which 196.1.6.8  happens to be the nameserver = of my isp.=20
 
 
Any suggestions would greatly be = appreciated.
 
 
 
Michael=20 Steinfeld         | The only = good is=20 knowledge and the only evil ignorance. --Socrates
Unix=20 Administrator       |  mike@sprawlnet.com  &nbs= p; //=20 Salute to JGB and The Boys .. still going down that = road.
Sprawlnet.com=20 INC    
------=_NextPart_000_000F_01BF2B65.E1EA6770-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message