From nobody Sun Jan 22 09:32:31 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P07LS3WWqz328G5; Sun, 22 Jan 2023 09:32:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P07LS1Z4bz3jyX; Sun, 22 Jan 2023 09:32:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674379952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dRiC2PuYmurM9UhZv97QlX80eJgFzFxP0Gg7zdnOP/8=; b=XmCDm69+tR5f3yHZf97S6zUXrdQxC+oznKEggmB+mcU47/PmL4J3OEE+40LYaOoPnYuTFx vOp+hF5ShZsQyZ6hpcWlu7A90wgTFhGEJ8mH0/kIBxdCw3pU6fsD8PQW31XgJBHfTJP6JJ WpTjDv68zaG9wAUXw5IsAFBYquUB2Gi6QV9f5Vp0rur1obuVE7cMJceGfckPHkxR+GuyMX +D0nmrGP//onumI0IAgXEhGMRPtfXlN6clT74Z6qSHPrI1NeKnny3XXNVwspAB2fXeoGcj lVODMUSMwUv6qUg5pcnTl6aTlzM9hTF0VgKOt0dUed8wJxhrf+3x7ds4elaJOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674379952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=dRiC2PuYmurM9UhZv97QlX80eJgFzFxP0Gg7zdnOP/8=; b=SGqZjO4451gpSIcXSmJ/2MzJdFiFe2FyyLtt65Vt7J7OvywmpjhkbuNqt3dR6/yjGOBZ8P mZRT7240hUS3IjMPyw2jAYfYuZVA5n0qZS0TiobDTujjdfetGFXStx87BHSP1Jwqji5gMt 6VnlquJ+GuCKHMj4ZsZcXOOsk1t0WRJEd3uWn4fO88Fj1gj+9oLsLjEB2XECMwMZDYnR9F 6itaWbW3ZnsGA2J0Q6T6wDVnNTbOoXCvwoaeg7CtxDZowhTmTcYOEX07+mf1zKzkxvJo5x yXeuDg8BwlZyYEl85J4FAhDQjAgP3lslvs+pOF/5q339hd2TRnO4pWQtu20wgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674379952; a=rsa-sha256; cv=none; b=BhFdocbN+Q15QoRaRggXbYwOiLSZ6bd5bjVgp27I7l4t4Ta1ry/QihCtzjEvu7pZNT4hhc YT845RemjAYQQ3Irmis+/tSd8CNa80zPeN3zZKcV3/hK5/C+UnZhcqxtc6elrkYIyNN8LV MdOIO8sEzIDzmhq8d3wq8nkQg3zJghNbMUHMYhBFHvnADiVVoPX1PPJEfNX6gH8ba9R9sj sSlA8DewFqRcVNOjK7PX17IHHWyiJM6Z5XurchGDYhyzE19M46eUbtL69YG8NZqKvLMu78 DmKgXGXWGBvsEC0ib30aftp/eqYwBeXoAdbKLlELM/lElH3Q2dJc1BfUcHQLow== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P07LS0fJTzkyb; Sun, 22 Jan 2023 09:32:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30M9WVCd072069; Sun, 22 Jan 2023 09:32:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30M9WVJE072068; Sun, 22 Jan 2023 09:32:31 GMT (envelope-from git) Date: Sun, 22 Jan 2023 09:32:31 GMT Message-Id: <202301220932.30M9WVJE072068@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Poul-Henning Kamp Subject: git: 2da12891daa2 - main - Document another example for "binat". List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: phk X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2da12891daa2ad1c39ced5ef86e3d136f958826c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by phk: URL: https://cgit.FreeBSD.org/src/commit/?id=2da12891daa2ad1c39ced5ef86e3d136f958826c commit 2da12891daa2ad1c39ced5ef86e3d136f958826c Author: Poul-Henning Kamp AuthorDate: 2023-01-22 09:31:18 +0000 Commit: Poul-Henning Kamp CommitDate: 2023-01-22 09:31:18 +0000 Document another example for "binat". --- share/man/man5/pf.conf.5 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5 index c7446f53bb49..2edce7f947eb 100644 --- a/share/man/man5/pf.conf.5 +++ b/share/man/man5/pf.conf.5 @@ -2927,6 +2927,10 @@ nat on $ext_if inet proto udp from any port = isakmp to any -\*(Gt ($ext_if) \e # (bidirectional). binat on $ext_if from 10.1.2.150 to any -\*(Gt $ext_if +# Translate packets arriving on $peer_if addressed to 172.22.16.0/20 +# to the corresponding address in 172.21.16.0/20 (bidirectional). +binat on $peer_if from 172.21.16.0/20 to any -> 172.22.16.0/20 + # RDR # Translate incoming packets' destination addresses. # As an example, redirect a TCP and UDP port to an internal machine.