1SNMP::Info::Layer3::Pf(U3s)er Contributed Perl DocumentatSiNoMnP::Info::Layer3::Pf(3)
2
3
4
6 SNMP::Info::Layer3::Pf - SNMP Interface to FreeBSD-Based Firewalls
7 using Pf /Pf Sense
8
10 Max Baker
11
13 # Let SNMP::Info determine the correct subclass for you.
14 my $pf = new SNMP::Info(
15 AutoSpecify => 1,
16 Debug => 1,
17 # These arguments are passed directly to SNMP::Session
18 DestHost => 'myswitch',
19 Community => 'public',
20 Version => 2
21 )
22 or die "Can't connect to DestHost.\n";
23
24 my $class = $pf->class();
25 print "SNMP::Info determined this device to fall under subclass : $class\n";
26
28 Subclass for FreeBSD PF-Based devices
29
31 LLDP Support is included but untested in this Device Class. It is
32 reported that the available CDP/LLDP modules for net-snmp don't work on
33 FreeBSD (on which pfSense is based) as they assume certain Linux
34 specific Ethernet structures. This problem is apparently solved on PF
35 based firewall appliances by using the ladvd package, for which a port
36 may be found here: <http://www.freshports.org/net/ladvd/>. I'm not
37 sure if this module ties into Net-SNMP or not.
38
39 Inherited Classes
40 SNMP::Info::Layer3
41
42 Required MIBs
43 FOKUS-MIB
44 Inherited Classes' MIBs
45 See "Required MIBs" in SNMP::Info::Layer3 for its own MIB
46 requirements.
47
49 These are methods that return scalar values from SNMP
50
51 $pf->vendor()
52 Returns 'freebsd'
53
54 $pf->model()
55 Grabs the os version from "sysDescr"
56
57 $pf->os()
58 Returns 'Pf'
59
60 $pf->os_ver()
61 Tries to reference $pf->id() to one of the product MIBs listed
62 above. Will probably return a truncation of the default OID for
63 pf-based systems "enterprises.12325.1.1.2.1.1".
64
65 Global Methods imported from SNMP::Info::Layer3
66 See documentation in "GLOBALS" in SNMP::Info::Layer3 for details.
67
69 These are methods that return tables of information in the form of a
70 reference to a hash.
71
72 Table Methods imported from SNMP::Info::Layer3
73 See documentation in "TABLE METHODS" in SNMP::Info::Layer3 for details.
74
75
76
77perl v5.34.0 2022-01-21 SNMP::Info::Layer3::Pf(3)