[Bug 290705] pf.conf: New-style NAT rules not document edin BNF

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 31 Oct 2025 20:56:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290705

            Bug ID: 290705
           Summary: pf.conf: New-style NAT rules not document edin BNF
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: eborisch+FreeBSD@gmail.com
                CC: doc@FreeBSD.org

The new NAT filter options (nat-to, rdr-to, binat-to), while having 
a number of examples included, are not represented in the BNF section
of pf.conf.5.

Cribbing from OpenBSD, the needed additions are likely:

filteropt = [...]
"binat-to" ( redirhost | "{" redirhost-list "}" )
[ portspec ] [ pooltype ] |
"rdr-to" ( redirhost | "{" redirhost-list "}" )
[ portspec ] [ pooltype ] |
"nat-to" ( redirhost | "{" redirhost-list "}" )
[ portspec ] [ pooltype ] [ "static-port" ] |
[...]

REF:
https://cgit.freebsd.org/src/commit/?id=e0fe26691fc98a16cdda9d4f4beea9c5698ac64a
(implementation and examples added to pf.conf.5; BNF section untouched.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.