Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2001 19:12:16 +0000
From:      Josh Paetzel <friar_josh@webwarrior.net>
To:        Paul Murphy <pnmurphy1@home.com>
Cc:        Henry smith <getzz11@yahoo.com>, questions@FreeBSD.ORG
Subject:   Re: NATD question...
Message-ID:  <20011109191216.D4519@twincat.vladsempire.net>
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
References:  <20011109023604.46157.qmail@web21109.mail.yahoo.com> <20011109231235.JCSY5322.femail16.sdc1.sfba.home.com@there>

next in thread | previous in thread | raw e-mail | index | archive | help
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?
> 
> -- 
> "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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011109191216.D4519>