From owner-freebsd-questions Sat Feb 16 4:20:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by hub.freebsd.org (Postfix) with ESMTP id F10BF37B400 for ; Sat, 16 Feb 2002 04:20:31 -0800 (PST) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020216122031.WWIY2626.rwcrmhc51.attbi.com@blossom.cjclark.org>; Sat, 16 Feb 2002 12:20:31 +0000 Received: (from cjc@localhost) by blossom.cjclark.org (8.11.6/8.11.6) id g1GCKVk43252; Sat, 16 Feb 2002 04:20:31 -0800 (PST) (envelope-from cjc) Date: Sat, 16 Feb 2002 04:20:31 -0800 From: "Crist J. Clark" To: Shawn Dillon Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Natd,ipfw,vnc and multiple interfaces Message-ID: <20020216042030.E36782@blossom.cjclark.org> References: <001c01c1b6b0$1c09ace0$05e6b38e@lantechhome> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <001c01c1b6b0$1c09ace0$05e6b38e@lantechhome>; from lansol@telusplanet.net on Fri, Feb 15, 2002 at 11:06:44PM -0700 X-URL: http://people.freebsd.org/~cjc/ 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 Fri, Feb 15, 2002 at 11:06:44PM -0700, Shawn Dillon wrote: > I am probably missing something very simple , but after much Coke and snacks > I cannot figure this out. > > System : FreeBSD 4.5 Stable > > > > xl1 xl2 xl3 xl4 > ________________ > (External nics , public IPS) > | > | > | > | > ___________________ > xl0 > (Internal Nic) 10.0.11.x 255.255.255.0 > > Ok , this FreeBSD bx has been working like a charm doing NAT from the > internal net to the external (using xl1). I installed the xl2,xl3, and xl4 > nics with the following objectives. I want to redirect ports or addresses( I > cannot get any ot them to work) from the external interfaces ( ie xl2) to an > IP on the internal network ( say 10.0.11.253). > > Questions > > 1) Can I define multiple interfaces in the natd.conf file? ( ie interface > xl1 xl2 xl3) What is the format? Run a different instance of natd(8) for each inteface. natd(8) can only handle one interface. > 2) Do I define the redirect_port/redirect_address in the natd? ( I assume > so) Probably. If you want to do NAT. > and in the firewall script( /sbin/ipfw add fwd tcp (external) from any > to (internal) Not if you want to do NAT. -- Crist J. Clark | cjclark@alum.mit.edu | cjclark@jhu.edu http://people.freebsd.org/~cjc/ | cjc@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message