El protocolo SNMP (Simple Network Management Protocol) se creó para supervisar los dispositivos de red. Además, este protocolo también puede utilizarse para gestionar tareas de configuración y cambiar ajustes de forma remota. El hardware compatible con SNMP incluye routers, conmutadores, servidores, dispositivos IoT y muchos otros dispositivos que también se pueden consultar y controlar mediante este protocolo estándar. Por lo tanto, es un protocolo para supervisar y gestionar dispositivos de red. Además, se pueden gestionar tareas de configuración y realizar ajustes de forma remota utilizando este estándar. La versión actual es SNMPv3, que aumenta la seguridad de SNMP en particular, pero también la complejidad de uso de este protocolo.
Default Configuration
La configuración por defecto del demonio SNMP define los ajustes básicos para el servicio, que incluyen las direcciones IP, puertos, MIB, OIDs, autenticación y cadenas de comunidad.
cat /etc/snmp/snmpd.conf | grep -v "#"| sed -r '/^\s*$/d'sysLocation Sitting on the Dock of the BaysysContact Me <me@example.org>sysServices 72master agentxagentaddress 127.0.0.1,[::1]view systemonly included .1.3.6.1.2.1.1view systemonly included .1.3.6.1.2.1.25.1rocommunity public default -V systemonlyrocommunity6 public default -V systemonlyrouser authPrivUser authpriv -V systemonly
Dangerous Settings
Ajustes
Descripción
rwuser noauth
Proporciona acceso al árbol OID completo sin autenticación.
rwcommunity <community string> <IPv4 address>
Proporciona acceso al árbol OID completo independientemente de dónde se enviaron las solicitudes.
rwcommunity6 <community string> <IPv6 address>
Mismo acceso que con rwcommunityla diferencia de usar IPv6.
# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loading them by commenting out the following line.
#mibs :
# If you want to globally change where snmp libraries, commands and daemons
# look for MIBS, change the line below. Note you can set this for individual
# tools with the -M option or MIBDIRS environment variable.
#
# mibdirs /usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf