enter code here
I have a problem when using the snmp and the server receives data,
The service is running correctly and the port is listening
I do a snmpwalk -v 2c -c mycommunity 192.168.1.82 (which is the same) and it answers me and a snmpwalk -v 2c -c mycommunity localhost and also, that is, the service is working but it does not respond from any machine other than her same
a sudo netstat -tulpn | grep snmp
sudo netstat -tulpn | grep snmp
udp 0 0 0.0.0.0:161 0.0.0.0:* 15014/snmpd
something similar happened to someone?
Best Answer
If firewalls are not involved, probably your configuration of the SNMPD service only accepts queries from local addresses.
Please, change the configuration of agentadress in /etc/snmp/snmpd.conf to
EDIT
If I am not wrong, your iptables configuration is establishing the DROP policy (anyway, the last rule is REJECT), so, you must allow explicitly all the traffic you want to reach your processes. In this case, the incoming traffic to port 161
If that works, you shuld make the rule persistent. Please find where the iptables rules are saved (/etc/iptables/rules.v4 ?) and edit to add the rule