Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Apr 2014 09:18:17 -1000
From:      Al Plant <noc@hdk5.net>
To:        Al Plant <noc@hdk5.net>,  "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: redirect_port Where should it go?
Message-ID:  <534056F9.60506@hdk5.net>
In-Reply-To: <20140404205958.GA5040@slackbox.erewhon.home>
References:  <533C7DEF.5030709@hdk5.net> <20140402215740.GA59530@slackbox.erewhon.home> <533C8A08.9060903@hdk5.net> <20140404205958.GA5040@slackbox.erewhon.home>

next in thread | previous in thread | raw e-mail | index | archive | help
Roland Smith wrote:
> 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).
> 
> Roland
############


Thanks Roland for your help.

Al


~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
   + http://hawaiidakine.com + http://freebsdinfo.org +
   + http://aloha50.net   - Supporting - FreeBSD  7.2 - 8.0 - 9* +
   < email: noc@hdk5.net >
"All that's really worth doing is what we do for others."- Lewis Carrol





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