From owner-freebsd-questions@FreeBSD.ORG Sun Apr 13 09:06:17 2003 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 2E8D837B401 for ; Sun, 13 Apr 2003 09:06:17 -0700 (PDT) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id 09C3443F85 for ; Sun, 13 Apr 2003 09:06:16 -0700 (PDT) (envelope-from mwm-dated-1050681975.87f56b@mired.org) Received: (qmail 37190 invoked from network); 13 Apr 2003 16:06:15 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 13 Apr 2003 16:06:15 -0000 Received: by guru.mired.org (tmda-inject, from uid 100); Sun, 13 Apr 2003 11:06:14 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16025.35572.536.909480@guru.mired.org> Date: Sun, 13 Apr 2003 11:06:11 -0500 To: taxman In-Reply-To: <200304131204.13035.taxman@acd.net> References: <20030411121053.GA77709@dogma.freebsd-uk.eu.org> <20030413121355.GA96192@dogma.freebsd-uk.eu.org> <20030413152629.GA886@marvin.penguinpowered.org.uk> <200304131204.13035.taxman@acd.net> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.73 (Jet Pilot) cc: Jonathon McKitrick cc: freebsd-questions@freebsd.org Subject: Re: How to connect laptop and desktop w/NICs 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: Sun, 13 Apr 2003 16:06:17 -0000 In <200304131204.13035.taxman@acd.net>, taxman typed: > On Sunday 13 April 2003 11:26 am, Wayne Pascoe wrote: > > On Sun, Apr 13, 2003 at 01:13:55PM +0100, Jonathon McKitrick wrote: > > > So far, so good. I can ping each machine from the other, and reset these > > > settings on startup. > > > However, the laptop (which I decided to make a client of the desktop, now > > > that I have a modem for the desktop) cannot ping past the gateway. I > > > have the default router set to the desktop, but something else must be > > > wrong. > > > Do I need to have inetd or natd running explicitly for this to work? > > Do you have > > gateway_enable="YES" > > in /etc/rc.conf ? If not you need to add this. > from rc.conf(5) it doesn't seem that gateway_enable starts natd. Then what is > the difference? > I'm a networking moron and in a similiar situation as Jonathon, and I was > wondering which options to use. gateway_enable sets net.inet.ip.forwarding to 1, so that the host will forward packets from one interface to another. That's what a gateway does. nat is Numerical Address Translation. It's a function that a gateway can do as well as forward packats, and makes it possible to hide internal IP addresses and have multiple machines share an IP address. Just having forwarding on won't do that. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.