From owner-freebsd-questions Sun Feb 7 04:33:57 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA22876 for freebsd-questions-outgoing; Sun, 7 Feb 1999 04:33:57 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA22857 for ; Sun, 7 Feb 1999 04:33:34 -0800 (PST) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id HAA13085; Sun, 7 Feb 1999 07:34:17 -0500 (EST) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.1/8.8.5) with ESMTP id IAA01374; Sun, 7 Feb 1999 08:17:03 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.9.1/8.6.9) id HAA02421; Sun, 7 Feb 1999 07:35:35 -0500 (EST) Date: Sun, 7 Feb 1999 07:35:35 -0500 (EST) From: Thomas David Rivers Message-Id: <199902071235.HAA02421@lakes.dignus.com> To: freebsd-questions@FreeBSD.ORG, wai@aloha.net Subject: Re: FreeBSD to FreeBSD connection In-Reply-To: <36BD7EEC.B6AD5AC1@aloha.net> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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 all you need to do is set the default router on FreeBSD #2. 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. - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message