I am trying to use SNMP to monitor a machine locally on its self and remotely. This is the snmpd.conf (Ubuntu 8.04.1):
# sec.name source comunity com2sec readonly 126.96.36.199 nicenandtight com2sec readonly 188.8.131.52 reallysafe group MyROGroup v1 readonly group MyROGroup v2c readonly group MyROGroup usm readonly view all included .1 view system included .iso.org.dod.internet.mgmt.mib-2.system access MyROGroup "" any noauth exact all none none syslocation my house syscontact me <email@example.com> exec .184.108.40.206.4.1.2021.7890.1 distro /usr/bin/distro smuxpeer .220.127.116.11.4.1.674.10892.1 includeAllDisks 95%
18.104.22.168 is the local machines IP and everything is working locally. 22.214.171.124 is the remote machine and initially I am just trying to touch SNMPD with snmpwalk from the remote machine;
snmpwalk -v 2c -c reallysafe 126.96.36.199 Timeout: No Response from 188.8.131.52
I have added to iptables as the very first rule;
-A INPUT -p udp -m udp --dport 161 -j ACCEPT
With such a loose iptables rule I can't see why I can't even touch the SNMPD on that Uubuntu Machine. There are more specific rules further down the table but as I couldn't connect I added the above. TCPDump shows the UDP packets coming in. What could be going wrong here?