From owner-freebsd-questions Thu Jul 25 13: 7:21 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 D193137B400 for ; Thu, 25 Jul 2002 13:07:19 -0700 (PDT) Received: from alpha.yumyumyum.org (dsl092-171-091.wdc1.dsl.speakeasy.net [66.92.171.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF81043E31 for ; Thu, 25 Jul 2002 13:07:18 -0700 (PDT) (envelope-from culverk@yumyumyum.org) Received: from alpha.yumyumyum.org (localhost [127.0.0.1]) by alpha.yumyumyum.org (8.12.5/8.12.3) with ESMTP id g6PK6x3H014659; Thu, 25 Jul 2002 16:06:59 -0400 (EDT) (envelope-from culverk@yumyumyum.org) Received: from localhost (culverk@localhost) by alpha.yumyumyum.org (8.12.5/8.12.3/Submit) with ESMTP id g6PK6wCO014656; Thu, 25 Jul 2002 16:06:58 -0400 (EDT) (envelope-from culverk@yumyumyum.org) X-Authentication-Warning: alpha.yumyumyum.org: culverk owned process doing -bs Date: Thu, 25 Jul 2002 16:06:58 -0400 (EDT) From: Kenneth Culver To: "Roger 'Rocky' Vetterberg" Cc: James West , Subject: Re: NAT with Three NICs In-Reply-To: <3D405934.7000104@rambo.simx.org> Message-ID: <20020725160253.D13432-100000@alpha.yumyumyum.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message