Date: Sun, 11 Nov 2001 13:21:10 -0500 From: Paul Murphy <pnmurphy1@home.com> To: Josh Paetzel <friar_josh@webwarrior.net> Cc: Henry smith <getzz11@yahoo.com>, questions@FreeBSD.ORG Subject: Re: NATD question... Message-ID: <20011111182111.ZMMG11705.femail8.sdc1.sfba.home.com@there> In-Reply-To: <20011109191216.D4519@twincat.vladsempire.net> References: <20011109023604.46157.qmail@web21109.mail.yahoo.com> <20011109231235.JCSY5322.femail16.sdc1.sfba.home.com@there> <20011109191216.D4519@twincat.vladsempire.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On November 9, 2001 02:12 pm, Josh Paetzel wrote: > On Fri, Nov 09, 2001 at 06:12:34PM -0500, Paul Murphy wrote: > > On November 8, 2001 09:36 pm, Henry smith wrote: > > > Hi, > > > > > > I'm using cable modem to connect to the internet. I > > > want to make my FreeBSD box as a gateway of my > > > microsoft windows client. > > > > > > > > > ==== FreeBSD Configuration ==== > > > > > > /etc/rc.conf: > > > > > > gateway_enable="YES" > > > natd_enable="YES" > > > natd_flags="" > > > > > > #ifconfig xl0 <connected to the internet> > > > ... inet 24.205.96.8 > > > #ifconfig xl1 <connected to LAN> > > > ... inet 192.168.1.1 > > > #ps x | grep natd > > > 348 ?? Ss 0:00.04 natd -interface xl1 > > > #ipfw list > > > 00001 allow ip from any to any > > > 00050 divert 8668 ip from any to any > > Ok, you are missing a few things here. One, you need to pass natd the > -dynamic switch in the natd_flags field in rc.conf > > Second, you need a divert rule for natd in your firewall ruleset. > > ipfw add divert natd all from any to any via xl0 > > Third, if you are going to tell windows to obtain a IP automatically, > then you need to have a dhcp server running that will feed it usable > info. ie you are going to have to run one on your freebsd machine. > Perhaps until you get natd working you should configure windows > manually. > > Josh > > > > > > ==== Windows Configuration ==== > > > > > > > > *** Obtain an IP address automatically > > > > > > ======================================== > > > > > > > > > My FreeBSD box is connected to the internet, but my > > > windows client is not connected to the internet. > > > > > > Does someone have any idea to help me ? > > > > > > Thank you very much, > > > Smith. > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Find a job, post your resume. > > > http://careers.yahoo.com > > > > Did you tell Windows that 192.168.1.1 is the gateway? > > IMHO, FWIW ;) If you only have 1 Win box and 1 FBSD box, I wouldn't use DHCP on your LAN (seems kinda pointless for only 2 machines). I have the same setup and I have manually assigned Windows a static IP of 192.168.x.x, the FBSD box has a static IP of 192.168.x.y in the internal interface and the external interface gets a 'dynamic' IP from @Home's DHCP server. The Windows' gateway is 192.168.x.y and the FBSD's gateway is assigned by @Home. p.s. I am not the originator of this thread, Henry smith <getzz11@yahoo.com> I think is the one who originally asked the question. -- "Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can." 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?20011111182111.ZMMG11705.femail8.sdc1.sfba.home.com>