From owner-freebsd-questions@FreeBSD.ORG Sun Apr 13 12:30:36 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 0657337B401 for ; Sun, 13 Apr 2003 12:30:36 -0700 (PDT) Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BAB143FAF for ; Sun, 13 Apr 2003 12:30:35 -0700 (PDT) (envelope-from jcm@FreeBSD-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 4.14) id 194nBN-0006RZ-9s; Sun, 13 Apr 2003 20:30:29 +0100 Received: from dogma.freebsd-uk.eu.org (localhost [127.0.0.1]) h3DJUSPe098210; Sun, 13 Apr 2003 20:30:28 +0100 (BST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.12.6/8.12.6/Submit) id h3DJURir098209; Sun, 13 Apr 2003 20:30:27 +0100 (BST) Date: Sun, 13 Apr 2003 20:30:27 +0100 From: Jonathon McKitrick To: taxman Message-ID: <20030413193027.GB98119@dogma.freebsd-uk.eu.org> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200304131204.13035.taxman@acd.net> User-Agent: Mutt/1.4i X-Spam-Score: -14.2 (--------------) X-Scanner: exiscan for exim4 (http://duncanthrax.net/exiscan/) *194nBN-0006RZ-9s*PiSiQNqqMno* 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 19:30:36 -0000 On Sun, Apr 13, 2003 at 12:04:12PM -0400, taxman wrote: : 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. >From what I have learned, and this may be the blind leading the blind, but the gateway simply forwards packets that are not address for that machine out to the net. However, natd seems to allow them to be received back as well, since the IP address of the machine behind the gateway is privately assigned and unknown outside that network. : : Thanks, : : Tim jcm -- Consulting: If you aren't part of the solution, there is a lot of money to be made in prolonging the problem.