redirect_port Where should it go?
rsmith at xs4all.nl
Fri Apr 4 21:00:02 UTC 2014
On Wed, Apr 02, 2014 at 12:07:04PM -1000, Al Plant wrote:
> Roland Smith wrote:
> > On Wed, Apr 02, 2014 at 11:15:27AM -1000, Al Plant wrote:
> >> Aloha,
> >> Several list members have posted redirect_port instructions. Some are for
> >> putting the command lines in natd.conf some mention PF. I use PF on my
> >> servers and firewall so either will be fine for me. Is there really any
> >> preferred way to redirect the the mail and www into the servers on the lan?
> > If you are already running pf, you might as well do the redirecting there. The
> > pf.conf(5) manual page has some examples.
> > Roland
> Thanks Roland,
> One thing I have noticed. There is a (-) dash in front of
> - redirect_port in the man pages but the dash is missing in the examples.
> What is the proper form when it is under the PF.
The form in pf.conf is something like this:
rdr on $ext_if proto tcp from any to any port 80 -> 127.0.0.1 port 8080
There are more examples in make.conf(5).
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93 FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 834 bytes
Desc: not available
More information about the freebsd-questions