From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 20 04:38:11 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 439AE37B401 for ; Fri, 20 Jun 2003 04:38:11 -0700 (PDT) Received: from genua.rfc-networks.ie (genua.rfc-networks.ie [62.77.182.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22A6243FBF for ; Fri, 20 Jun 2003 04:38:10 -0700 (PDT) (envelope-from philip.reynolds@rfc-networks.ie) Received: from tear.domain (unknown [10.0.1.254]) by genua.rfc-networks.ie (Postfix) with ESMTP id 5447454897 for ; Fri, 20 Jun 2003 12:38:08 +0100 (IST) Received: by tear.domain (Postfix, from userid 1000) id CCE9221150; Fri, 20 Jun 2003 11:38:07 +0000 (GMT) Date: Fri, 20 Jun 2003 11:38:07 +0000 From: Philip Reynolds To: freebsd-hackers@freebsd.org Message-ID: <20030620113807.GA78646@rfc-networks.ie> References: <573562C6FDA9564A8EEE66D899BC190B02935D92@EMSS01M10.us.lmco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <573562C6FDA9564A8EEE66D899BC190B02935D92@EMSS01M10.us.lmco.com> X-Operating-System: FreeBSD 4.7-STABLE X-URL: http://www.rfc-networks.ie Subject: Re: Networking problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: philip.reynolds@rfc-networks.ie List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jun 2003 11:38:11 -0000 "Tkachenko, Artem N" 44 lines of wisdom includ= ed: > What I am trying to accomplish is to set up Node A and Node B (and not No= de > C) to have Node A think that it is directly connected to LAN2 with an IP > Address 10.77.1.2 >=20 > So if Node A needs to send a packet to Node C, some program on Node A will > encapsulate the packed and send it to Node B. Some other program on Node B > will get the encapsulated packet, recognize that it came from Node A and > that it needs to go somewhere else on LAN2, open the capsule and forward = the > original packet to the appropriate destination. >=20 > And if Node C needs to send a packet to 10.77.1.2, the router on LAN2 will > force it to send the packet to Node B. The Node B should then forward the > packet to Node A. I think you're looking for NAT, which will translate the appropiate addresses. Have a google for some information. Ref: natd(8), ipfw(8) --=20 Philip Reynolds | RFC Networks Ltd. philip.reynolds@rfc-networks.ie | +353 (0)1 8832063 http://people.rfc-networks.ie/~phil | www.rfc-networks.ie