Bug 290059 - pf.conf(5) BNF errors
Summary: pf.conf(5) BNF errors
Status: Closed FIXED
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: Kristof Provost
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-07 02:31 UTC by pprocacci
Modified: 2025-10-10 12:30 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pprocacci 2025-10-07 02:31:42 UTC
FreeBSD 14.3 Release


Invalid, results in syntax error:
  pass in on igb0 route-to ( igb0 ) from any to any

Valid, no syntax error:
  pass in on igb0 route-to ( igb0 12.34.56.78 ) from any to any



According to the BNF in pf.conf(5), both are valid.

     route          = ( "route-to" | "reply-to" | "dup-to" )
                      ( routehost | "{" routehost-list "}" )
                      [ pooltype ]

     routehost = "(" interface-name [ address [ "/" mask-bits ] ] ")"
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-10-07 08:22:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=306f29475fcefcca0a32d1cd764eabf7b2e441f8

commit 306f29475fcefcca0a32d1cd764eabf7b2e441f8
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-10-07 08:13:23 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-10-07 08:21:45 +0000

    pf.conf.5: 'address' is mandatory with route-to

    Adjust the BNF, and don't claim it is optional in the text.

    PR:             290059
    MFC after:      3 days
    Sponsored by:   Rubicon Communications, LLC ("Netgate")

 share/man/man5/pf.conf.5 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2025-10-10 08:12:48 UTC
A commit in branch stable/15 references this bug:

URL: https://cgit.FreeBSD.org/src/commit/?id=8638af3b2209aef302506afc895bd44d014fd64b

commit 8638af3b2209aef302506afc895bd44d014fd64b
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2025-10-07 08:13:23 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2025-10-10 08:11:37 +0000

    pf.conf.5: 'address' is mandatory with route-to

    Adjust the BNF, and don't claim it is optional in the text.

    PR:             290059
    MFC after:      3 days
    Sponsored by:   Rubicon Communications, LLC ("Netgate")

    (cherry picked from commit 306f29475fcefcca0a32d1cd764eabf7b2e441f8)

 share/man/man5/pf.conf.5 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)