From owner-freebsd-questions@freebsd.org Wed Mar 29 21:06:38 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F40ACD245C7 for ; Wed, 29 Mar 2017 21:06:37 +0000 (UTC) (envelope-from srs0=zbbg=3g=sigsegv.be=kristof@venus.codepro.be) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BEAF41BE for ; Wed, 29 Mar 2017 21:06:37 +0000 (UTC) (envelope-from srs0=zbbg=3g=sigsegv.be=kristof@venus.codepro.be) Received: from [192.168.228.1] (vega.codepro.be [IPv6:2a01:4f8:162:1127::3]) (Authenticated sender: kp) by venus.codepro.be (Postfix) with ESMTPSA id B79B32A0EF; Wed, 29 Mar 2017 23:06:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sigsegv.be; s=mail; t=1490821595; bh=ax5UbingZDLEoOAEJxAo8RYV7Q8ffNXkGPv/jSjP5V0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=yT/wWPz1jO2otNWRB2UgoQ/497kBxeX4DAahbyny9uGBkREwb4sa280LWZ2ccFauG qv3DteCbiuDB2JfNTfm9ryi0C+oDQ+SFpQHPArmbYFNGRBKb1aPsIwJMhqVIBe0++5 bxzhJUhld2G1tn8GjiTZe+IPla/53BXOhbGpa99I= From: "Kristof Provost" To: "David Mehler" Cc: freebsd-questions Subject: Re: Two pf questions Date: Wed, 29 Mar 2017 23:06:37 +0200 Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailer: MailMate (2.0BETAr6080) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2017 21:06:38 -0000 On 27 Mar 2017, at 16:37, David Mehler wrote: > My second question is one of nat reflection is the term. I've got a > jail running a service on port 8000. I've got external redirect rules > and pass rules passing in the traffic. The problem is I've got need to > get access to that machine port 8000 on the host machine. > > I try something like ssh user@xxx.xxx.xxx.xxx -p 8000 > Presumably you’ve got a rule like this: rdr on $ext_if proto tcp from any to any port 8000 -> $jail port 80 Add something like rdr on $int_if proto tcp from $localnet to ($ext_if) port 8000 -> $jail port 80 Regards, Kristof