git: 8a96306eb7d9 - stable/14 - pf.conf.5: fix ≤
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Feb 2025 17:43:18 UTC
The branch stable/14 has been updated by kp:
URL: https://cgit.FreeBSD.org/src/commit/?id=8a96306eb7d9708079430ba6aa2efd28144eb1c9
commit 8a96306eb7d9708079430ba6aa2efd28144eb1c9
Author: Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-02-05 14:52:15 +0000
Commit: Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-02-18 17:40:26 +0000
pf.conf.5: fix ≤
pf.conf expects <=, not ≤ (and the same applies to ≥ and >=).
Make sure the man page reflects this.
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
(cherry picked from commit 85c333a947e950d9267517afd1d9c30a655b7bfb)
---
share/man/man5/pf.conf.5 | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/share/man/man5/pf.conf.5 b/share/man/man5/pf.conf.5
index 96deca5788c8..0b73ba6b5e02 100644
--- a/share/man/man5/pf.conf.5
+++ b/share/man/man5/pf.conf.5
@@ -1816,9 +1816,9 @@ Ports and ranges of ports are specified by using these operators:
= (equal)
!= (unequal)
\*(Lt (less than)
-\*(Le (less than or equal)
+<= (less than or equal)
\*(Gt (greater than)
-\*(Ge (greater than or equal)
+>= (greater than or equal)
: (range including boundaries)
\*(Gt\*(Lt (range excluding boundaries)
\*(Lt\*(Gt (except range)
@@ -1859,7 +1859,7 @@ pass in all
pass in from any to any
pass in proto tcp from any port \*(Le 1024 to any
pass in proto tcp from any to any port 25
-pass in proto tcp from 10.0.0.0/8 port \*(Gt 1024 \e
+pass in proto tcp from 10.0.0.0/8 port >= 1024 \e
to ! 10.1.2.3 port != ssh
pass in proto tcp from any os "OpenBSD"
.Ed
@@ -3330,7 +3330,7 @@ os = "os" ( os-name | "{" os-list "}" )
user = "user" ( unary-op | binary-op | "{" op-list "}" )
group = "group" ( unary-op | binary-op | "{" op-list "}" )
-unary-op = [ "=" | "!=" | "\*(Lt" | "\*(Le" | "\*(Gt" | "\*(Ge" ]
+unary-op = [ "=" | "!=" | "\*(Lt" | "<=" | "\*(Gt" | ">=" ]
( name | number )
binary-op = number ( "\*(Lt\*(Gt" | "\*(Gt\*(Lt" | ":" ) number
op-list = ( unary-op | binary-op ) [ [ "," ] op-list ]