Debian SNMP setup
-
Install the service
apt-get install snmpdConfig the service
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.oricreate config file
nano /etc/snmp/snmpd.confedit config
#Listen on all interfaces, IPv4 only agentAddress udp:161 #ACCESS CONTROL view all included .1.3.6.1.2.1.1 view all included .1.3.6.1.2.1.25.1 #SNMP v2 (Read only) with community "public" restricted to Network #Please change IP 192.168.1.0/24 to your Network. rocommunity public 10.73.0.0/16 #Run as root agentuser rootggf firewall rule
iptables -A INPUT -s 192.168.0.0/16 -p udp --dport 161 -j ACCEPTservice starten und auto starten
service snmpd restart systemctl enable snmpd