Date: Wed, 10 Nov 1999 10:25:17 -0500 From: "Michael Steinfeld" <mike@sprawlnet.com> To: <freebsd-stable@freebsd.org> Subject: sharing a single modem connection with natd. Message-ID: <001201bf2b8f$cd2820a0$86a9e0d0@sprawlnet.com>
next in thread | raw e-mail | index | archive | help
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT size=3D2>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</FONT></DIV> <DIV><FONT size=3D2> </FONT></DIV> <DIV><FONT size=3D2>THe FreeBSD box has the modem in it which connects = to my ISP=20 and is assigned a dynamic IP. </FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>FreeBSD - pn0 is assigned = 192.168.0.98</FONT></DIV> <DIV><FONT = size=3D2>Linux - eth0=20 (rl0) is assigned 192.168.0.99</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>I set up natd as follows:</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>1) Compiled in options ipfirewall ipdivert in a = new=20 kernel</FONT></DIV> <DIV><FONT size=3D2>2) added natd_enable=3D"YES" firewall_enable=3D"YES" = gateway_enable=3D"YES" in rc.conf</FONT></DIV> <DIV><FONT size=3D2>3) I edited /etc/services natd =20 8668/divert</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2> # now i know this shouldnt be very difficult = but there=20 must be something i am over-looking.</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2>After i compiling the new kernel ,editing the files = i=20 restarted my Freebsd box.</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>after using ' ppp -alias my-isp ' i run ' natd = -interface tun0=20 '</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>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.</FONT></DIV> <DIV><FONT size=3D2>what i ultimately want to do is share the one = internet=20 connection for both box's.</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>( Yes, both box's are talking to one = another)</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>if i issue ' nslookup ' on the linux box after a = considerable=20 amount of time</FONT></DIV> <DIV><FONT size=3D2>i get an error message something similar to = *** cant get=20 name of 196.1.6.8 </FONT></DIV> <DIV><FONT size=3D2>which 196.1.6.8 happens to be the nameserver = of my isp.=20 </FONT></DIV> <DIV> </DIV> <DIV> </DIV> <DIV><FONT size=3D2>Any suggestions would greatly be = appreciated.</FONT></DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2></FONT> </DIV> <DIV><FONT size=3D2>Michael=20 Steinfeld | The only = good is=20 knowledge and the only evil ignorance. --Socrates<BR>Unix=20 Administrator | <A=20 href=3D"mailto:mike@sprawlnet.com">mike@sprawlnet.com</A> &nbs= p; //=20 Salute to JGB and The Boys .. still going down that = road.<BR>Sprawlnet.com=20 INC </FONT></DIV></BODY></HTML> ------=_NextPart_000_000F_01BF2B65.E1EA6770-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001201bf2b8f$cd2820a0$86a9e0d0>