From owner-freebsd-questions@FreeBSD.ORG Sun Apr 13 08:16:11 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 8F92537B401 for ; Sun, 13 Apr 2003 08:16:11 -0700 (PDT) Received: from smtp.mailbox.co.uk (smtp.mailbox.net.uk [195.82.125.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25A0F43FAF for ; Sun, 13 Apr 2003 08:16:10 -0700 (PDT) (envelope-from wayne.pascoe@penguinpowered.org.uk) Received: from [212.18.244.168] (helo=marvin.penguinpowered.org.uk) by smtp.mailbox.co.uk with esmtp (Exim 3.36 #1) id 194jDE-0003Si-00; Sun, 13 Apr 2003 16:16:08 +0100 Received: from waynep by marvin.penguinpowered.org.uk with local (Exim 3.33 #1) id 194jNF-0000Ep-00; Sun, 13 Apr 2003 16:26:29 +0100 Date: Sun, 13 Apr 2003 16:26:29 +0100 From: Wayne Pascoe To: Jonathon McKitrick Message-ID: <20030413152629.GA886@marvin.penguinpowered.org.uk> References: <20030411121053.GA77709@dogma.freebsd-uk.eu.org> <3E96CEFE.4030605@potentialtech.com> <20030413121355.GA96192@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030413121355.GA96192@dogma.freebsd-uk.eu.org> User-Agent: Mutt/1.4i X-System: FreeBSD i386 with kernel 4.8-STABLE Sender: User Waynep 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 15:16:11 -0000 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. If you did need to add this, then run (as root) sysctl net.inet.ip.forwarding=1 to save having to reboot. You should now be able to ping past the gateway, but you might need to set NAT up as well. For this, just add the -nat flag to your ppp startup command. HTH, -- Wayne Pascoe