From owner-freebsd-questions Thu Jul 25 13: 1: 0 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 29CED37B400 for ; Thu, 25 Jul 2002 13:00:57 -0700 (PDT) Received: from rambo.simx.org (rambo.simx.org [80.65.205.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CA8343E5E for ; Thu, 25 Jul 2002 13:00:55 -0700 (PDT) (envelope-from listsub@rambo.simx.org) Received: from rambo.simx.org (rocky [192.168.0.2]) by rambo.simx.org (8.12.5/8.12.5) with ESMTP id g6PK0fAM063266; Thu, 25 Jul 2002 22:00:45 +0200 (CEST) (envelope-from listsub@rambo.simx.org) Message-ID: <3D405934.7000104@rambo.simx.org> Date: Thu, 25 Jul 2002 22:01:56 +0200 From: "Roger 'Rocky' Vetterberg" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc2) Gecko/20020618 Netscape/7.0b1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: James West Cc: freebsd-questions@FreeBSD.ORG Subject: Re: NAT with Three NICs References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 James West wrote: > I'm fairly new to FreeBSD coming from a linux background. > > My problem is probably simple, but I'm having a hard time with it. I > have four boxes, one FreeBSD that acts as a gateway/NAT router/Firewall, > a Windows2k workstation, and two old Mac workstations. > > Being unable to afford a 10/100 hub right now, I'm stuck with a 10 hub > and 10/100 cards in both the freebsd and windows machines. So I thought > I could just simply connect those two via crossover so I could get 100 > on the ones I use the most, and stick a 10 card in the freebsd machine > to connect to the hub and the old Macs that both have simple 10 cards. I > would assign the 10 card in the freebsd machine a different submask and > call it a day. > > It doesn't seem to be that simple. > > For some reason, my packets are being routed perfectly from the W2k > machine to the internet and back, but the macs are not reachable from > either the FreeBSD box or the W2k box. They cannot get out either. > > I'm wondering, what do I have to do to get the FreeBSD machine to route > packets from both dc0 (100) and ed0 (10) through rl0 (which is connected > to my cablemodem, DHCP) and back again, as well as route traffic around > the local network? > > Thank you > > James West > 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. -- R To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message