From owner-freebsd-net@FreeBSD.ORG Mon Jan 30 18:51:28 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E98B716A422 for ; Mon, 30 Jan 2006 18:51:28 +0000 (GMT) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B3AC43D48 for ; Mon, 30 Jan 2006 18:51:28 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.17.229]) ([10.251.17.229]) by a50.ironport.com with ESMTP; 30 Jan 2006 10:51:28 -0800 Message-ID: <43DE6030.4090702@elischer.org> Date: Mon, 30 Jan 2006 10:51:28 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tiago Cruz References: <1138387362.4742.9.camel@localhost.localdomain> <43DA6C6A.7050701@elischer.org> <1138390041.4742.19.camel@localhost.localdomain> <43DA8E70.2070804@elischer.org> <1138621574.18130.26.camel@localhost.localdomain> In-Reply-To: <1138621574.18130.26.camel@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-net@FreeBSD.org" Subject: Re: Network client is the same from server X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2006 18:51:29 -0000 Tiago Cruz wrote: >On Fri, 2006-01-27 at 13:19 -0800, Julian Elischer wrote: > > > >>it is definitly possible >>but you will have to do some reading >>natd can do it. >> >> it should be in the natd man page.. (or libalias page) > >I found this in the OpenVPN FAQ: > >================ >Does anybody know how to remap local addresses, if I want to connect two >networks with an overlap in the private address range? >Using iptables 1.2.7a+ and the NETMAP target: > > > iptables -t nat -A PREROUTING -d 192.168.0.0/24 -j NETMAP --to 192.168.1.0/24 > >================ > >Is this what I want!!! >But.... how can I do this in PF/FreeBSD? > >Thank you! > > >