Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Nov 2000 15:33:28 -0800
From:      "Crist J . Clark" <cjclark@reflexnet.net>
To:        Sam Carleton <scarleton@bigfoot.com>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: using NAT to redirect, as well as masquerade
Message-ID:  <20001119153328.B12190@149.211.6.64.reflexcom.com>
In-Reply-To: <3A1852BD.807093A7@bigfoot.com>; from scarleton@bigfoot.com on Sun, Nov 19, 2000 at 05:22:53PM -0500
References:  <3A1852BD.807093A7@bigfoot.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
  .
  .
  .
  <more redirects and natd(8) options>

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




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