From owner-freebsd-net@FreeBSD.ORG Thu Sep 22 19:31:03 2005 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 889AA16A41F; Thu, 22 Sep 2005 19:31:03 +0000 (GMT) (envelope-from dionch@freemail.gr) Received: from smtp.freemail.gr (smtp.freemail.gr [213.239.180.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BEE243D45; Thu, 22 Sep 2005 19:31:03 +0000 (GMT) (envelope-from dionch@freemail.gr) Received: by smtp.freemail.gr (Postfix, from userid 101) id 8480BBC21F; Thu, 22 Sep 2005 22:30:59 +0300 (EEST) Received: from [10.0.0.1] (vdp1074.ath03.dsl.hol.gr [62.38.168.75])by smtp.freemail.gr (Postfix) with ESMTP id 9CD17BC021; Thu, 22 Sep 2005 22:30:58 +0300 (EEST) Message-ID: <4333064C.6080804@freemail.gr> Date: Thu, 22 Sep 2005 22:30:20 +0300 From: Chris Dionissopoulos User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Paolo Pisati References: <4331C65C.5030308@yan.com.br> <20050922084116.132E970DCD6@mail.npubs.com> <20050922175207.GA1194@tin.it> In-Reply-To: <20050922175207.GA1194@tin.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-net@freebsd.org Subject: Re: IPFW NATD = NAT POOL X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dionch@freemail.gr List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Sep 2005 19:31:03 -0000 Nice work! Is possible to implement a "port address forwarding" (aka PAT) using some ipfw rules? (or with any other way) Something similar to "-redirect_port" option of natd(8). TIA, Chris. Paolo Pisati wrote: >On Thu, Sep 22, 2005 at 08:41:16AM +0000, Nate Nielsen wrote: > > >>No. I think each instance of natd (at least last time I looked at it) >>could only use one IP address as it's public address. >> >> > >FYI you can use nat inside ipfw[*]: > >ipfw nat 1 config ip 192.168.0.123 >ipfw nat 2 config ip 192.168.0.456 >... >ipfw add 100 nat 1 all from any to any via [if0] >ipfw add 200 nat 2 all from any to any via [if1] >... > >so someone will finally test it... :) > >[*] http://wikitest.freebsd.org/moin.cgi/PaoloPisati > > ____________________________________________________________________ http://www.freemail.gr - δωρεάν υπηρεσία ηλεκτρονικού ταχυδρομείου. http://www.freemail.gr - free email service for the Greek-speaking.