From owner-freebsd-questions Thu Aug 9 14: 3:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from itouch.co.nz (itouch.co.nz [203.99.66.188]) by hub.freebsd.org (Postfix) with ESMTP id E866D37B406 for ; Thu, 9 Aug 2001 14:03:16 -0700 (PDT) (envelope-from jonc@itouch.co.nz) Received: (from jonc@localhost) by itouch.co.nz (8.11.3/8.11.1) id f79L2uG95065; Fri, 10 Aug 2001 09:02:56 +1200 (NZST) (envelope-from jonc) Date: Fri, 10 Aug 2001 09:02:56 +1200 From: Jonathan Chen To: GARGIULO Eduardo INGDESI Cc: freebsd-questions@FreeBSD.ORG Subject: Re: custom setup Message-ID: <20010810090256.B93773@itouchnz.itouch> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from YAPEDU@SIDERAR.COM on Thu, Aug 09, 2001 at 11:47:25AM -0300 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 On Thu, Aug 09, 2001 at 11:47:25AM -0300, GARGIULO Eduardo INGDESI wrote: > Hi. I'm running debian GNU/Linux and I'm interested in switch to FreeBSD. > I want to know if is possible to configure a system like i'm using now > under FreeBSD. > The layout is the following > > internet --- router ---- eth0 linuxbox eth1 --- switch > | > --- eth2 --- switch > > I have a small class C network (6 IP addresses). > eth1 IP address is 0.0.0.0 and I'm using ARP to map the internal servers > with real IPs. I'm using ipmasquerading throw eth2 to allow internal > workstation (private network IPs) surf Internet and also using ipforward > to allow external clientes connect internal servers with private nework IP. > > I know is possible to nat internal LAN under FreeBSD but I don't know if > is possible to forward external request to internal hosts and to use ARP > to map internal servers. With FreeBSD's natd(8) there's no need to do funky ARP mappings. The natd(8) program has the following options which I think will do what you want: -redirect_address localIP publicIP -redirect_port proto targetIP[:targetPORT] remoteIP[:remotePort] Cheers. -- Jonathan Chen ---------------------------------------------------------------------- "Nyuck, nyuck, nyuck" - Curly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message