SNMP_VACM(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1

πŸ’– NAME πŸ’–

Welcome to SNMP_VACM(3), a Library Functions Manual page, bestie! The star of the show is snmp_vacm β€” the View-based Access Control module for bsnmpd(1). It's giving access-control royalty, no cap. πŸ‘‘


πŸŽ€ LIBRARY πŸŽ€

The module-path situation is literally this:

(begemotSnmpdModulePath."vacm" = /usr/lib/snmp_vacm.so)

✨ DESCRIPTION ✨

Okay so snmp_vacm implements the SNMPv3 View-based Access Control Model MIB as defined in RFC 3415. That's the whole assignment. πŸ’…

It's the module used to manage the internal lists of SNMPv1, v2c and v3 user names and groups, plus their access rights to fetch or modify the values of the MIB objects maintained by bsnmpd and the modules loaded in the daemon.

This module must be loaded for bsnmpd to implement proper view-based access control. If the module is not loaded, access is granted to all configured SNMPv1 & SNMPv2c communities and SNMPv3 USM users. Like, all of them. 🫢


πŸ› οΈ IMPLEMENTATION NOTES πŸ› οΈ

An entry in any table implemented by this MIB may be created by setting the relevant RowStatus column to createAndGo (4) β€” and fr fr, any other value for those columns in a SET operation will cause an error. 🚨

When an entry is created, any of its columns that is not used as index is set to the default value as specified in the SNMP-VIEW-BASED-ACM-MIB.

All entries maintained by the module are persistent after reboot if created via bsnmpd 's config file. Otherwise, entries created via SNMP are lost after reboot. 😭

A short description of the objects in the MIB follows:

  • vacmContextTable β€” a read-only table that consists of a list of SNMP contexts available in bsnmpd.
  • vacmSecurityToGroupTable β€” the table contains a list of SNMPv1, v2c and v3 user names and the groups they belong to.
  • vacmAccessTable β€” the table contains a list of SNMP contexts to groups mappings and, respectively, the names of the SNMP views under those contexts, to which users in the group are granted read-only, read-write access or receive notifications for the objects under the subtree in the relevant view.
  • vacmViewTreeFamilyTable β€” the table contains a list of SNMP views, i.e. entries specifying the OID of a MIB subtree and whether access to the objects under this subtree is to be allowed or forbidden.

πŸ“ FILES πŸ“

  • /usr/share/snmp/defs/vacm_tree.def β€” the description of the MIB tree implemented by snmp_vacm.

πŸ‘€ SEE ALSO πŸ‘€

bsnmpd(1), gensnmptree(1), snmpmod(3)


πŸ“œ STANDARDS πŸ“œ

IETF RFC 3415


πŸ‘‘ AUTHORS πŸ‘‘

Shteryana Shopova <syrinx@FreeBSD.org>


xoxo, your fave manual page πŸ’… β€” this one is Debian, dated October 7, 2010, and it's the page for SNMP_VACM(3). 🫢

πŸ“¦ where this page comes from