Add support for BEGEMOT PF MIB for FreeBSD devices

We use Packet Filter (pf) on FreeBSD devices and we would like to collect metrics on this on LibreNMS.

We use bsnmpd and its module “snmp_pf” to expose metrics about firewalling, but I feel like LibreNMS does not support this on FreeBSD devices (feel free to tell me if I’m wrong).

I saw on this post from 2018 : Add support for BEGEMOT PF MIB for pfSense devices that it was implemented on PfSense devices. As PfSense use FreeBSD as core and also use bsnmpd and its module “snmp_pf” (so same MIBs), I suppose it’s not to much work to implement this on FreeBSD devices too.

MIBs can be found here : freebsd-src/usr.sbin/bsnmpd/modules/snmp_pf/BEGEMOT-PF-MIB.txt at master · freebsd/freebsd-src · GitHub

If I can help anyway, please tell me, it would be great for us to have graphs for this on FreeBSD devices.