SNMP binds only to 127.0.0.1 (localhost)
The net-snmp FAQ says "Normally, the agent will bind to the specified port on all interfaces
on the system, and accept requests received from any of them."
http://
However I see that on my Feisty system the /etc/init.d/snmpd startup script bound snmpd to only the localhost interface:
$ ps -ef|grep snmp
snmp 6591 1 0 04:11 ? 00:00:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1
$ netstat -natup|grep 161
udp 0 0 127.0.0.1:161 0.0.0.0:*
I can manually launch snmpd without the 127.0.0.1 parameter and then it will not bind to any specific interface:
$ sudo netstat -natup|grep snmpd
udp 0 0 0.0.0.0:161 0.0.0.0:* 7178/snmpd
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Matt Mossholder
- Solved:
- Last query:
- Last reply: