Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jul 2002 16:06:58 -0400 (EDT)
From:      Kenneth Culver <culverk@yumyumyum.org>
To:        "Roger 'Rocky' Vetterberg" <listsub@rambo.simx.org>
Cc:        James West <zerowren@msn.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: NAT with Three NICs
Message-ID:  <20020725160253.D13432-100000@alpha.yumyumyum.org>
In-Reply-To: <3D405934.7000104@rambo.simx.org>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020725160253.D13432-100000>