From owner-freebsd-questions Sun Nov 19 15:38:14 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id 0FF4E37B4C5 for ; Sun, 19 Nov 2000 15:38:13 -0800 (PST) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Sun, 19 Nov 2000 15:33:12 -0800 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id eAJNXcQ23289; Sun, 19 Nov 2000 15:33:38 -0800 (PST) (envelope-from cjc) Date: Sun, 19 Nov 2000 15:33:28 -0800 From: "Crist J . Clark" To: Sam Carleton Cc: FreeBSD Questions Subject: Re: using NAT to redirect, as well as masquerade Message-ID: <20001119153328.B12190@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <3A1852BD.807093A7@bigfoot.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3A1852BD.807093A7@bigfoot.com>; from scarleton@bigfoot.com on Sun, Nov 19, 2000 at 05:22:53PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Nov 19, 2000 at 05:22:53PM -0500, Sam Carleton wrote: > Ok, I have the firewall under control for normal ip masquerading. Now > I would like to use NAT to redirect a few ports, like port 80, to > another internal machine. I have looked at the NAT man page, but cannot > make sence of it. Is there any examples out there of how to do what I > would like to do? Thanks! Add, natd_flags="-redirect_port tcp internal_machine:80 80" To /etc/rc.conf to have it work at boot time. Alternatively, if you are going to have a list of these, put, redirect_port tcp internal_machine:80 80 . . . In /etc/natd.conf and in rc.conf have, natd_flags="-f /etc/natd.conf" -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message