git: 2da12891daa2 - main - Document another example for "binat".
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 22 Jan 2023 09:32:31 UTC
The branch main has been updated by phk:
URL: https://cgit.FreeBSD.org/src/commit/?id=2da12891daa2ad1c39ced5ef86e3d136f958826c
commit 2da12891daa2ad1c39ced5ef86e3d136f958826c
Author: Poul-Henning Kamp <phk@FreeBSD.org>
AuthorDate: 2023-01-22 09:31:18 +0000
Commit: Poul-Henning Kamp <phk@FreeBSD.org>
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.