Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2002 22:01:56 +0200
From:      "Roger 'Rocky' Vetterberg" <listsub@rambo.simx.org>
To:        James West <zerowren@msn.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: NAT with Three NICs
Message-ID:  <3D405934.7000104@rambo.simx.org>
References:  <F29XXeQM7gyoPB2EWrO00000f82@hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D405934.7000104>