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 18.104.22.168 nicenandtight com2sec readonly 22.214.171.124 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 <firstname.lastname@example.org> exec .126.96.36.199.4.1.2021.7890.1 distro /usr/bin/distro smuxpeer .188.8.131.52.4.1.674.10892.1 includeAllDisks 95%
184.108.40.206 is the local machines IP and everything is working locally. 220.127.116.11 is the remote machine and initially I am just trying to touch SNMPD with snmpwalk from the remote machine;
snmpwalk -v 2c -c reallysafe 18.104.22.168 Timeout: No Response from 22.214.171.124
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?