SNMP::...r3::Pf(3pm)

πŸŽ€ SNMP::Info::Layer3::Pf πŸ’…

okay bestie, we're doing SNMP::Info::Layer3::Pf β€” the SNMP Interface to FreeBSD-Based Firewalls using Pf /Pf Sense ✨ (yes that's the real name, someone wrote it like that, we respect it)

it lives in the User Contributed Perl Documentation section of the manual, so you know it's a community vibe 🫢


πŸ‘‘ AUTHOR

Max Baker

periodt, that's the whole author section, we love a one-liner πŸ’–


✨ SYNOPSIS ✨

 # Let SNMP::Info determine the correct subclass for you.
 my $pf = new SNMP::Info(
                        AutoSpecify => 1,
                        Debug       => 1,
                        # These arguments are passed directly to SNMP::Session
                        DestHost    => 'myswitch',
                        Community   => 'public',
                        Version     => 2
                        )
    or die "Can't connect to DestHost.\n";

 my $class      = $pf->class();
 print "SNMP::Info determined this device to fall under subclass : $class\n";

no cap, this is the classic "let the library figure out what you're talking to" move 🌸


🌈 DESCRIPTION

Subclass for FreeBSD PF-Based devices πŸ’œ

πŸ”₯ LLDP Support

LLDP Support is included but untested in this Device Class πŸ™ˆ not me telling you that straight up, but fr fr, it's literally in the docs.

so the tea is: it's reported that the available CDP/LLDP modules for net-snmp don't work on FreeBSD (which is what pfSense is based on) because they assume certain Linux specific Ethernet structures 😭 which, fair, that's giving very much "this was not built for you."

This problem is apparently solved on PF based firewall appliances by using the ladvd package πŸ¦‹ and a port for it may be found here: http://www.freshports.org/net/ladvd/

and then, iconic honesty: "I'm not sure if this module ties into Net-SNMP or not." πŸ’€ we stan a real one.

🧚 Inherited Classes

SNMP::Info::Layer3

πŸ“š Required MIBs

FOKUS-MIB

Inherited Classes' MIBs

See "Required MIBs" in SNMP::Info::Layer3 for its own MIB requirements πŸ’«


⭐ GLOBALS ⭐

These are methods that return scalar values from SNMP πŸŽ€

  • $pf->vendor() β€” Returns 'freebsd' 🐧
  • $pf->model() β€” Grabs the os version from sysDescr πŸ‘€
  • $pf->os() β€” Returns 'Pf' πŸ’…
  • $pf->os_ver() β€” Tries to reference $pf->id() to one of the product MIBs listed above. Will probably return a truncation of the default OID for pf-based systems enterprises.12325.1.1.2.1.1 πŸ”

πŸ’– Global Methods imported from SNMP::Info::Layer3

See documentation in "GLOBALS" in SNMP::Info::Layer3 for details ✨


πŸ‘‘ TABLE METHODS πŸ‘‘

These are methods that return tables of information in the form of a reference to a hash πŸ“

🌟 Table Methods imported from SNMP::Info::Layer3

See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details πŸ’œ


heads up bestie: this doc came from perl v5.40.1 and was dated 2026-02-28 πŸ—“οΈ so if you're reading it in the future, hi, you're the main character now πŸ’…

stay slay, go query a firewall, ily πŸ«ΆπŸ’–

πŸ“¦ where this page comes from