From owner-freebsd-questions Thu Jul 25 13:26:54 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7971737B400 for ; Thu, 25 Jul 2002 13:26:52 -0700 (PDT) Received: from hotmail.com (f25.pav0.hotmail.com [64.4.32.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F7EF43E5E for ; Thu, 25 Jul 2002 13:26:52 -0700 (PDT) (envelope-from zerowren@msn.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 25 Jul 2002 13:26:52 -0700 Received: from 206.11.232.29 by pv0fd.pav0.hotmail.msn.com with HTTP; Thu, 25 Jul 2002 20:26:51 GMT X-Originating-IP: [206.11.232.29] From: "James West" To: freebsd-questions@FreeBSD.ORG Subject: Re: NAT with Three NICs Date: Thu, 25 Jul 2002 15:26:51 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 25 Jul 2002 20:26:52.0015 (UTC) FILETIME=[9C4157F0:01C23419] 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 Now, this is another question I've had: what's the advantage of the ipfilter package over natd/ipfw? James >From: Kenneth Culver >To: "Roger 'Rocky' Vetterberg" >CC: James West , >Subject: Re: NAT with Three NICs >Date: Thu, 25 Jul 2002 16:06:58 -0400 (EDT) > > > You could run two natd daemons on the gateway machine, one for the win > > machine and one for the macs. Just start another natd listening on > > another port, and add a ipfw divert rule to send the traffic from the > > macs through this new natd. > >Or you could use ipfilter+ipnat, and just add two redirect rules: > >map fxp0 192.168.0.0/24 -> 0/32 portmap tcp/udp 10000:30000 >map fxp0 192.168.1.0/24 -> 0/32 portmap tcp/udp 30000:60000 > >then just make sure you set it up so the 2 internal nics are on the >192.168.0.0/24 and 192.168.1.0/24 subnets respectively and it should work >(I've done similar things.) > >Ken > _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message