From owner-freebsd-questions Sun Feb 7 10:03:11 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA22613 for freebsd-questions-outgoing; Sun, 7 Feb 1999 10:03:11 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA22606 for ; Sun, 7 Feb 1999 10:03:09 -0800 (PST) (envelope-from des@flood.ping.uio.no) Received: (from des@localhost) by flood.ping.uio.no (8.9.2/8.9.1) id TAA88131; Sun, 7 Feb 1999 19:02:56 +0100 (CET) (envelope-from des) To: Thomas David Rivers Cc: freebsd-questions@FreeBSD.ORG, wai@aloha.net Subject: Re: FreeBSD to FreeBSD connection References: <199902071235.HAA02421@lakes.dignus.com> From: Dag-Erling Smorgrav Date: 07 Feb 1999 19:02:56 +0100 In-Reply-To: Thomas David Rivers's message of "Sun, 7 Feb 1999 07:35:35 -0500 (EST)" Message-ID: Lines: 36 X-Mailer: Gnus v5.5/Emacs 19.34 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thomas David Rivers writes: > > I have the following network configuration: > > > > |------| dial-up |------------| xl0 |------------| > > | ISP |--~~~~~~~--| FreeBSD #1 |-------| FreeBSD #2 | > > |------| |------------| |------------| > > IP aliasing 192.168.1.2 > > gateway enabled > > 192.168.1.1 > > > > How do you setup the FreeBSD #2 to access the Internet via FreeBSD #1? > If you have ipfw and natd set up (as your picture indicates), then ipfw and natd are complete overkill, since userland PPP has that functionality built in. Read the fine manual, and add 'alias enable yes' to the top of the 'default' section in ppp.conf. > all you need to do is set the default router on FreeBSD #2. You also need to enable IP forwarding on FreeBSD #1 by typing 'sysctl -w net.inet.ip.forwarding 1' as root. To make sure it stays on after a reboot, set gateway_enable to YES in rc.conf. > On FreeBSD #2, issue the command: > route add default 192.168.1.1 > > or, set up 192.168.1.1 as the "gateway" machine in the /etc/rc.conf file > on FreeBSD #2. You mean defaultrouter, not gateway. And you should do *both*, unless you have a particular reason for rebooting a computer that doesn't need to be rebooted. DES -- Dag-Erling Smorgrav - des@flood.ping.uio.no To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message