Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Feb 2025 17:43:18 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 8a96306eb7d9 - stable/14 - =?utf-8?Q?pf.conf.5: fix =E2=89=A4?=
Message-ID:  <202502181743.51IHhI0W021478@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 ]



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502181743.51IHhI0W021478>