Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Apr 2003 16:26:29 +0100
From:      Wayne Pascoe <freebsd@penguinpowered.org.uk>
To:        Jonathon McKitrick <jcm@FreeBSD-uk.eu.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to connect laptop and desktop w/NICs
Message-ID:  <20030413152629.GA886@marvin.penguinpowered.org.uk>
In-Reply-To: <20030413121355.GA96192@dogma.freebsd-uk.eu.org>
References:  <20030411121053.GA77709@dogma.freebsd-uk.eu.org> <3E96CEFE.4030605@potentialtech.com> <20030413121355.GA96192@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030413152629.GA886>