From owner-freebsd-questions Sat May 18 13:57: 9 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cpimssmtpu11.email.msn.com (cpimssmtpu11.email.msn.com [207.46.181.86]) by hub.freebsd.org (Postfix) with ESMTP id 26DE937B405 for ; Sat, 18 May 2002 13:57:05 -0700 (PDT) Received: from thebe ([67.24.228.5]) by cpimssmtpu11.email.msn.com with Microsoft SMTPSVC(5.0.2195.4617); Sat, 18 May 2002 13:57:04 -0700 From: "Aaron Burke" To: Cc: "FreeBSD-Questions" Subject: RE: Dual Homed Hosts Date: Sat, 18 May 2002 13:56:32 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: X-OriginalArrivalTime: 18 May 2002 20:57:04.0526 (UTC) FILETIME=[908192E0:01C1FEAE] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of > rising-star@runbox.com > Sent: Saturday, May 18, 2002 10:13 AM > To: freebsd-questions@FreeBSD.ORG > Subject: Dual Homed Hosts > > > Dear Sir, Madam, > Firstly I apologise if this is not the right email address for > asking questions. > > I have two servers at home connected via a cross-over cable. One > is supposed to be a web server and thus connected to the outside > world. The second a database server not visible to the outside world. > > How do I connect these two boxes together so that they can talk > to one another? > > I am a newbie and have not understood the various Dual Homed > Hosts examples and ifconfig. > > Is there simpler way using the hosts/networks or rc.conf files? > > Regards, > Ajay Sharma > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > How are these two machines connected? How do you connect to the internet? Take for example a situation at my location. I use the rl0 interface for the local network on a 192.168.0.x address and the internet connection is user ppp. User ppp assignes an address to the tun0 (tunnel interface). This gives me a situation of this: [Alpha] DHCP assigned internet ip address Network Address Translation Daemon rl0 interface (192.168.0.1) to local ethernet. This config gives all of my network access to the internet on the private IP addresses I give them. And its without configuration. There are other popular ways to connect to the internet. One such solution is an external (CABLE/DSL) connection that just plugs into the hub. In this case, the router would do network address translation for you. [HUB] |||| |||+--- Broadband adapter <-> Internet IP address ||+---- Machine #1 <-> with private address |+----- Machine #2 <-> with private address +------ (more machines) <-> with private address Other methods of connection are that your internet connection has an interface that plugs into your BSD box. Here is an example of that. Internet connection <-> YourBSDbox <-> Your private network that includes your private server To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message