The branch main has been updated by kp:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=85c333a947e950d9267517afd1d9c30a655b7bfb

commit 85c333a947e950d9267517afd1d9c30a655b7bfb
Author:     Kristof Provost <k...@freebsd.org>
AuthorDate: 2025-02-05 14:52:15 +0000
Commit:     Kristof Provost <k...@freebsd.org>
CommitDate: 2025-02-11 10:32:22 +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")
---
 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 c438cfc6894b..4020243c521b 100644
--- a/share/man/man5/pf.conf.5
+++ b/share/man/man5/pf.conf.5
@@ -1870,9 +1870,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)
@@ -1913,7 +1913,7 @@ pass in all
 pass in from any to any
 pass in proto tcp from any port \*(Lt 1024 to any
 pass in proto tcp from any to any port 25
-pass in proto tcp from 10.0.0.0/8 port \*(Ge 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
@@ -3425,7 +3425,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 ]

Reply via email to