...
Change the configuration in /etc/snmp/snmpd.conf and enable snmpd. Change the contact and community strings as needed.
By default, the SNMP daemon will ONLY listen on the local loopback interface. To allow the daemon to respond to requests from other clients on the network, the agentAddress line should be modified. By default, it should have the following content:
agentAddress udp:127.0.0.1:161
In order to allow the snmpd daemon to listen on all network interfaces, modify the line as follows:
udp:161 - ie remove 127.0.0.1:
Update the setting in /etc/default/snmpd and remove the 127.0.0.1 from the SNMPDOPTS parameter - this needs to be done or you cant access the SNMP service from the network as its currently restricted to the local loop back address
Update the section to allow the SNMP process to run. Change the SNMPDRUN=no to yes
# snmpd control (yes means start daemon).
SNMPDRUN=yes
Restart the snmpd services /etc/init.d/snmpd restart . The snmp daemon should now be running and visible from the process list, using the command ps -aux |grep snmpd
Test it and run the following from the Snare Central Server shell prompt snmpwalk -c <SNMP Community string> -v2c - it should respond and show some details.
If you have the Snare firewall enabled then you will need to update the ufw firewall rules to allow UDP 161 in. Edit the /data/Snare/Supporting/configure-firewall.sh script to add in your rule for udp 161 as it only currently allows snmp traps on port 162. As of Snare Central Server patch 7.1.1 and as part of v8 there is a new firewall management capability in the Snare Central Server Configuration Wizard.
...