Date: Thu, 19 Feb 2004 11:00:37 +0100 From: Marc Fonvieille <blackend@FreeBSD.org> To: Stanley Chan <stan@cyberec.com> Cc: doc@FreeBSD.org Subject: Re: NAT Message-ID: <20040219100037.GA28172@abigail.blackend.org> In-Reply-To: <40342674.EA5D0DA5@cyberec.com> References: <40342674.EA5D0DA5@cyberec.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 19, 2004 at 10:59:01AM +0800, Stanley Chan wrote: > Dear FreeBSD, > > I am build my server with the FreeBSD 4.9. I am also building the NAT, > could you kindly tell me which file should I put the following command > as described in the documents. I want to enable one machine behind the > firewall to run web server. > > In the above example, the argument should be: > > -redirect_port tcp 192.168.0.2:6667 6667 > -redirect_port tcp 192.168.0.3:80 80 > As written few lines below: --- These options can be used when directly running natd(8) or placed within the natd_flags="" option in /etc/rc.conf. --- However something is missing in the Handbook: how to define a natd rules file, for example adding the following line in /etc/rc.conf: natd_flags="-f /etc/natd.conf" with /etc/natd.conf providing options and translation rules: redirect_port tcp 192.168.0.2:6667 6667 redirect_port tcp 192.168.0.3:80 80 I will fix this doc issue soon. Thanks for the report. Marc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040219100037.GA28172>