Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 22:59:58 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        Al Plant <noc@hdk5.net>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: redirect_port Where should it go?
Message-ID:  <20140404205958.GA5040@slackbox.erewhon.home>
In-Reply-To: <533C8A08.9060903@hdk5.net>
References:  <533C7DEF.5030709@hdk5.net> <20140402215740.GA59530@slackbox.erewhon.home> <533C8A08.9060903@hdk5.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 a=
ny
> >> preferred way to redirect the the mail and www into the servers on the=
 lan?
> >=20
> > If you are already running pf, you might as well do the redirecting the=
re. The
> > pf.conf(5) manual page has some examples.
> >=20
> > Roland
> ##########
>=20
> Thanks Roland,
>=20
> 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.
>=20
> 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
--=20
R.F.Smith                                   http://rsmith.home.xs4all.nl/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 5753 3324 1661 B0FE 8D93  FCED 40F6 D5DC A38A 33E0 (keyID: A38A33E0)

--WIyZ46R2i8wDzkSu
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (FreeBSD)

iQIcBAEBAgAGBQJTPx1OAAoJEED21dyjijPgZ/EQAKYjOJgh8253BPgIhmkP8cNk
YHAkpwLKn/C/5IEC7demugDkaVlY4kC0HVWKHufouvrE+WMkU1zkLdvN+IFwkWxO
3ez6l3cfRWCIqdNwf/jH4eV7DXQqlwfL7AT/eDDTps3cTWqx+VCEGTbruD1yPa1d
98Q0WfoRfjTMTBCKHTFDqm+k2jNvvVFdcohMiGIvH/zfXHeCXFdxeiH9MBXfS/LO
zPG0IAmRI+IT56EpiebzQjeQ3bYZWYwUk75SfcPMoXU5KvnRXBSVgMK5E7a9wVvl
A51BnaOIBos0MOfGrqPK/86+egfUnki/TUBn6NFhoShR4a4p5PQbozZWKQI4osDU
5CNMKFG0osQ8geW3Hx1rVyrsuTLFZcmBbFo+r1DMMdxRhR38CAibTPQYMcN03BRD
rncA9+IheTe1IkaGIBPxtNy4CQGeNTI7fURPZcJ/rQ0PiqJEnWkEPsuNRMk2it0H
QGKk61uW3+icFePtFao86gHrLBqJ91+kYoNC+EcHsIT69Tsmri4Mb/oXl+V+FwjF
OQQKKaHs6wFP+B9FDdXMKJWJ74EgABAT3c0KXucpRYqSD2Vy/PCsxRCzOWZ/YMNR
4nqs0qFhFfwIv/6aLLHA84pWEW9LJwqcsDySoqB6vYAHTJBVqoEhTti7yq313oyI
wFK7Fp5meR+fTzXd24QO
=BWJ4
-----END PGP SIGNATURE-----

--WIyZ46R2i8wDzkSu--



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