From owner-freebsd-hackers@FreeBSD.ORG Sun May 7 14:11:24 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 1725F16A410 for ; Sun, 7 May 2006 14:11:24 +0000 (UTC) (envelope-from infofarmer@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C0AC43D46 for ; Sun, 7 May 2006 14:11:23 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by nz-out-0102.google.com with SMTP id l1so991311nzf for ; Sun, 07 May 2006 07:11:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=laCbMvB97Qld4vXcxf50sQROhGscZOAEMh8F1bZjxmueA15+dZQZUpvJhfgvxrnn+3cnoDrwJeRFuZKQXzxHauyypjzOhmBL0tGcG6hv8Xt5Mi7bb5z1XzMiZKpZKd0Q8Jxh/C3hzm+qOzRA7fqoc5M2V4eGkvu4PheOWdEhwpo= Received: by 10.65.121.9 with SMTP id y9mr612839qbm; Sun, 07 May 2006 07:11:22 -0700 (PDT) Received: by 10.65.240.12 with HTTP; Sun, 7 May 2006 07:11:22 -0700 (PDT) Message-ID: Date: Sun, 7 May 2006 18:11:22 +0400 From: "Andrew Pantyukhin" To: "marcel245@mweb.co.za" In-Reply-To: <926f294bee3f4d3caf20a4257ccded9b@mweb.co.za> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <926f294bee3f4d3caf20a4257ccded9b@mweb.co.za> X-Mailman-Approved-At: Sun, 07 May 2006 14:24:42 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: NATD & IPFW X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 May 2006 14:11:24 -0000 On 5/6/06, marcel245@mweb.co.za wrote: > > I cant seem to get something working and would really appreciate some > h elp. > I use IPFW and have used NAT in the past through the ipfw "divert" > rules. > But what i need to get right is simply nat for a particular host > internally to a external mail server. > Now i ca n nat all traffic or nothing not control a particular > host. > Also i have tried all resources and methods including trying the > "rediect por t" function of natd seperatlly of ipfw. this to didnt > seem to work. Examples i copied didnt. > Im using freebsd6 Just don't divert outgoing traffic that you don't want to NAT. As for the incoming - just be sure not to use deny_incoming (if the alias IP is not dedicated to the host you wanna NAT).