🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
2 messages
2 total messages Started by bugzilla-noreply Mon, 16 Nov 2026 15:27
[Bug 300818] bsnmp-pf reports incorrect pfTablesTblCount values for PF tables
#491
Author: bugzilla-noreply
Date: Mon, 16 Nov 2026 15:27
89 lines
5083 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300818

            Bug ID: 300818
           Summary: bsnmp-pf reports incorrect pfTablesTblCount values for
                    PF tables
           Product: Base System
           Version: 15.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: zeus@gnu.org.ua

The bsnmp-pf module (begemotPf MIB) reports wildly inaccurate address counts
for PF tables via the pfTablesTblCount OID
(1.3.6.1.4.1.12325.1.200.1.9.2.1.3).

When a dynamic table is populated with a large number of addresses (e.g., by
sshguard), pfctl correctly shows tens of thousands of entries, but bsnmpd
reports the count as 1 (or similarly low single-digit numbers).

Additionally, walking the actual address pool (pfTablesAddrTable / ...1.9.3)
successfully returns hundreds of thousands of lines, confirming the daemon
is aware the addresses exist, but the summary count in pfTablesTblTable is
broken.

Steps to Reproduce:

1. Populate a PF table with a large number of addresses.
2. Verify the true address count using pfctl.
3. Walk the pfTablesTblTable (1.3.6.1.4.1.12325.1.200.1.9.2.1) using bsnmpwalk.

Actual Results:
The actual count according to the kernel is 24,861:

# pfctl -T show -t sshguard | wc -l
   24861



The count reported by bsnmpd for the identical table is 1:

# bsnmpwalk -v 2 -s foo.bar 1.3.6.1.4.1.12325.1.200.1.9.2.1|grep '.68 ='
1.3.6.1.4.1.12325.1.200.1.9.2.1.2.68 = sshguard
1.3.6.1.4.1.12325.1.200.1.9.2.1.3.68 = 1
1.3.6.1.4.1.12325.1.200.1.9.2.1.4.68 = 5893600
1.3.6.1.4.1.12325.1.200.1.9.2.1.5.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.6.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.7.68 = 410
1.3.6.1.4.1.12325.1.200.1.9.2.1.8.68 = 72608
1.3.6.1.4.1.12325.1.200.1.9.2.1.9.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.10.68 = 16712
1.3.6.1.4.1.12325.1.200.1.9.2.1.11.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.12.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.13.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.14.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.15.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.16.68 = 281
1.3.6.1.4.1.12325.1.200.1.9.2.1.17.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.18.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.19.68 = 0
1.3.6.1.4.1.12325.1.200.1.9.2.1.20.68 = 0

As I suggest, the pfTablesTblCount value should closely match the output of
pfctl -T show -t <table> | wc -l.

Besides that:

The bug persists even when the SNMP table indices (e.g., 68 in the example
above) are perfectly synchronized across the pfTablesTblDescr and
pfTablesTblCount columns.

The values 1, 0, 0, 2... appearing in the count column suggest that bsnmp-pf
may be accidentally populating the count column with an internal reference
counter (like pfTablesTblRefsAnchor or pfTablesTblRefsRule) rather than the
actual pfr_tstats address count.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 300818] bsnmp-pf reports incorrect pfTablesTblCount values for PF tables
#495
Author: bugzilla-noreply
Date: Mon, 16 Nov 2026 15:31
16 lines
2555 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300818

Mark Linimon <linimon@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |pf@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads