From owner-freebsd-questions Sun Nov 11 7: 5:54 2001 Delivered-To: freebsd-questions@freebsd.org Received: from services.webwarrior.net (overlord-host99.dsl.visi.com [209.98.86.99]) by hub.freebsd.org (Postfix) with ESMTP id B5AB137B417 for ; Sun, 11 Nov 2001 07:05:40 -0800 (PST) Received: from twincat.vladsempire.net (hutch-627.hutchtel.net [206.10.68.155]) by services.webwarrior.net (Postfix) with ESMTP id E0A37320 for ; Sun, 11 Nov 2001 09:05:27 -0600 (CST) Received: by twincat.vladsempire.net (Postfix, from userid 1001) id 8BF7B39CD; Fri, 9 Nov 2001 19:12:16 +0000 (GMT) Date: Fri, 9 Nov 2001 19:12:16 +0000 From: Josh Paetzel To: Paul Murphy Cc: Henry smith , questions@FreeBSD.ORG Subject: Re: NATD question... Message-ID: <20011109191216.D4519@twincat.vladsempire.net> References: <20011109023604.46157.qmail@web21109.mail.yahoo.com> <20011109231235.JCSY5322.femail16.sdc1.sfba.home.com@there> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011109231235.JCSY5322.femail16.sdc1.sfba.home.com@there>; from pnmurphy1@home.com on Fri, Nov 09, 2001 at 06:12:34PM -0500 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 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? > > -- > "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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message