From owner-freebsd-questions@FreeBSD.ORG Wed Aug 18 14:15:17 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7F3C16A578 for ; Wed, 18 Aug 2004 14:15:17 +0000 (GMT) Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 404A143D4C for ; Wed, 18 Aug 2004 14:15:17 +0000 (GMT) (envelope-from mail25@bzerk.org) Received: from ei.bzerk.org (BOFH@localhost [127.0.0.1]) by ei.bzerk.org (8.12.10/8.12.10) with ESMTP id i7IEHRWA050091; Wed, 18 Aug 2004 16:17:27 +0200 (CEST) (envelope-from mail25@bzerk.org) Received: (from bulk@localhost) by ei.bzerk.org (8.12.10/8.12.10/Submit) id i7IEHQQV050090; Wed, 18 Aug 2004 16:17:26 +0200 (CEST) (envelope-from mail25@bzerk.org) Date: Wed, 18 Aug 2004 16:17:26 +0200 From: Ruben de Groot To: AETCH , freebsd-questions@freebsd.org Message-ID: <20040818141726.GA49938@ei.bzerk.org> Mail-Followup-To: Ruben de Groot , AETCH , freebsd-questions@freebsd.org References: <200372004831873631906@ms12.url.com.tw> <20040818133734.GA6786@sara.mshome.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040818133734.GA6786@sara.mshome.net> User-Agent: Mutt/1.4.2.1i Subject: Re: problem with getway X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2004 14:15:18 -0000 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