BSD Ports

Vulnerable: version 5.9.4_6,1 is affected by 1 known vulnerability. See below.

net-mgmt/net-snmp 5.9.4_6,1 DragonFly

Extendable SNMP implementation

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD3CLAUSE
Categories
net-mgmt
Package size
2433.9 KiB, 12791.1 KiB installed

Description

This is Net-SNMP (previously known as "ucd-snmp").

Various tools relating to the Simple Network Management Protocol including:

An extensible agent
An SNMP library
tools to request or set information from SNMP agents
tools to generate and handle SNMP traps
a version of the Unix 'netstat' command using SNMP
a graphical Perl/Tk/SNMP based mib browser

In the other systems

The newest version among them is 5.9.5.2, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlynet-mgmt/net-snmp5.9.4_6,1 behind since 2026-09-221 known-[email protected]-
FreeBSDnet-mgmt/net-snmp5.9.5.2,1 newestnone known-[email protected]-
OpenBSDnet/net-snmp by name5.9.5.2p1 newestno data-Stuart Henderson <[email protected]>2026-07-17
NetBSDnet/net-snmp by name5.9.5.2 newest2 known-[email protected]2026-09-22
MidnightBSDnet-mgmt/net-snmp5.9.5.2_3,1 newestno data-[email protected]2026-09-22
HardenedBSDnet-mgmt/net-snmp5.9.5.2,1 newestno data-[email protected]-
GhostBSDnet-mgmt/net-snmp5.9.5.2,1 newestno data-[email protected]-
OPNsensenet-mgmt/net-snmp5.9.5.2,1 newestno data-[email protected]-

Compare across BSDs

Install

Binary package:

pkg install net-snmp

From DPorts:

cd /usr/dports/net-mgmt/net-snmp && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 3

Configuration

No options to configure.

Service scripts
none

Message after installing

**** This port installs snmpd, header files and libraries but does not
     start snmpd by default.
     If you want to auto-start snmpd and snmptrapd, add the following to
     /etc/rc.conf:

	snmpd_enable="YES"
	snmpd_flags="-a"
	snmpd_conffile="/usr/local/share/snmp/snmpd.conf /etc/snmpd.conf"
	snmptrapd_enable="YES"
	snmptrapd_flags="-a -p /var/run/snmptrapd.pid"

**** You may also specify the following make variables:

	NET_SNMP_SYS_CONTACT="[email protected]"
	NET_SNMP_SYS_LOCATION="USA"
	DEFAULT_SNMP_VERSION=3
	NET_SNMP_MIB_MODULES="host smux mibII/mta_sendmail ucd-snmp/diskio"
	NET_SNMP_LOGFILE=/var/log/snmpd.log
	NET_SNMP_PERSISTENTDIR=/var/net-snmp

     to define default values (or to override the defaults).  To avoid being
     prompted during the configuration process, you should (minimally) define
     the first two variables. (NET_SNMP_SYS_*)

     You may also define the following to avoid all interactive configuration:

	BATCH="yes"

snmpd now drops privileges by default after initialization is completed.
Ensure that any extension commands defined in your snmpd.conf can be executed
by the snmpd user.

It is possible to start and run snmpd entirely as a non-root user with the
following steps:

1. Add the following lines to /etc/rc.conf:

	snmpd_user="snmpd"
	snmpd_group="snmpd"
	snmpd_pidfile="/var/net-snmp/snmpd.pid"

2. Configure the mac_portacl(4) kernel module:

   a. Load mac_portacl.ko at boot time by adding the following line to
      /etc/rc.conf:

	kld_list="mac_portacl"

   b. Configure the following sysctls in sysctl.conf(5):

      net.inet.ip.portrange.reservedhigh=0
      security.mac.portacl.rules=gid:344:udp:161,gid:344:tcp:161,gid:344:tcp:199,gid:344:tcp:705

   This allows snmpd to bind to these privileged ports without holding
   special privileges.

3. Make sure that the snmpd user has read/write or read-only access to the
   following:

	RW - /var/log/snmpd.log
	RW - /var/net-snmp/*
	RO - /usr/local/share/snmp/*

   Note that snmpd creates the /var/net-snmp directory upon its initial
   startup, and this cannot be done by the snmpd user.

4. Ensure that any and all extension commands defined in snmpd.conf can be
   executed by the snmpd user.

Known vulnerabilities 1

37 DragonFly ports depend on it, directly or through others, and may carry the vulnerable code. The ports that need it