From owner-freebsd-questions Sun Nov 11 10:21:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail8.sdc1.sfba.home.com (femail8.sdc1.sfba.home.com [24.0.95.88]) by hub.freebsd.org (Postfix) with ESMTP id F215837B417 for ; Sun, 11 Nov 2001 10:21:28 -0800 (PST) Received: from there ([24.141.18.230]) by femail8.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP id <20011111182111.ZMMG11705.femail8.sdc1.sfba.home.com@there>; Sun, 11 Nov 2001 10:21:11 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Paul Murphy To: Josh Paetzel Subject: Re: NATD question... Date: Sun, 11 Nov 2001 13:21:10 -0500 X-Mailer: KMail [version 1.3.1] Cc: Henry smith , questions@FreeBSD.ORG References: <20011109023604.46157.qmail@web21109.mail.yahoo.com> <20011109231235.JCSY5322.femail16.sdc1.sfba.home.com@there> <20011109191216.D4519@twincat.vladsempire.net> In-Reply-To: <20011109191216.D4519@twincat.vladsempire.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20011111182111.ZMMG11705.femail8.sdc1.sfba.home.com@there> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 > > > ... inet 24.205.96.8 > > > #ifconfig xl1 > > > ... 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 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