From owner-freebsd-questions@FreeBSD.ORG Fri Apr 4 21:00:02 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6AC541DC for ; Fri, 4 Apr 2014 21:00:02 +0000 (UTC) Received: from smtp-vbr11.xs4all.nl (smtp-vbr11.xs4all.nl [194.109.24.31]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E2926BC for ; Fri, 4 Apr 2014 21:00:01 +0000 (UTC) Received: from slackbox.erewhon.home (slackbox.xs4all.nl [83.162.243.5]) by smtp-vbr11.xs4all.nl (8.13.8/8.13.8) with ESMTP id s34KxwN1009965; Fri, 4 Apr 2014 22:59:58 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.home (Postfix, from userid 1001) id 5C6F712407; Fri, 4 Apr 2014 22:59:58 +0200 (CEST) Date: Fri, 4 Apr 2014 22:59:58 +0200 From: Roland Smith To: Al Plant Subject: Re: redirect_port Where should it go? Message-ID: <20140404205958.GA5040@slackbox.erewhon.home> Mail-Followup-To: Al Plant , "freebsd-questions@freebsd.org" References: <533C7DEF.5030709@hdk5.net> <20140402215740.GA59530@slackbox.erewhon.home> <533C8A08.9060903@hdk5.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline In-Reply-To: <533C8A08.9060903@hdk5.net> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.23 (2014-03-12) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: "freebsd-questions@freebsd.org" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2014 21:00:02 -0000 --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--