From 2da12891daa2ad1c39ced5ef86e3d136f958826c Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 22 Jan 2023 09:31:18 +0000 Subject: [PATCH] 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.