Date: Wed, 18 Aug 2004 16:17:26 +0200 From: Ruben de Groot <mail25@bzerk.org> To: AETCH <aetch@ms12.url.com.tw>, freebsd-questions@freebsd.org Subject: Re: problem with getway Message-ID: <20040818141726.GA49938@ei.bzerk.org> In-Reply-To: <20040818133734.GA6786@sara.mshome.net> References: <200372004831873631906@ms12.url.com.tw> <20040818133734.GA6786@sara.mshome.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 18, 2004 at 08:37:34AM -0500, James A. Coulter typed: > On Wed, Aug 18, 2004 at 03:36:31PM +0800, AETCH wrote: > > I have install freebsd 4.x,and have two netcards. > > I want it as getway. > > I have config "gateway_enable=YES" in rc.conf,and then reboot. > > [a pc]--------[freebsd]-------[b pc] > > After reboot , I try to use a pc to ping b pc ,it`s not work ,but a pc and > > b pc can ping freebsd successful,why? > > Please give me a hand. > > Thanks!! > > > > aetch > > Have you built a kernel with IPFW enabled and have you enabled natd in > your rc.conf? For what he wants to do (connecting two LANs via a FreeBSD gateway, you don't need a firewall nor nat. All you need to do is enable FreeBSD as a gateway, which he did, and tell both pc's what gateway to use to reach the other LAN, eg. on "a pc": C:\ route add 192.168.1.0 mask 255.255.255.0 192.168.0.1 (that is, if "a pc" is windows, in network 192.168.0.x, "b pc" is in network 192.168.1.x and the gateway's IP address on the "a pc" side has address 192.168.0.1) cheers, Ruben
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040818141726.GA49938>