Date: Sun, 13 Apr 2003 11:06:11 -0500 From: Mike Meyer <mwm-dated-1050681975.87f56b@mired.org> To: taxman <taxman@acd.net> Cc: freebsd-questions@freebsd.org Subject: Re: How to connect laptop and desktop w/NICs Message-ID: <16025.35572.536.909480@guru.mired.org> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
In <200304131204.13035.taxman@acd.net>, taxman <taxman@acd.net> 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. <mike -- Mike Meyer <mwm@mired.org> http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16025.35572.536.909480>