Debian Lenny snmpd IP binding

 | 12 Oct 2007 15:09

Yet another non CCIE post ;)

It appears that Debian Lenny by default only binds to 127.0.0.1 (localhost). I had to add the following two lines to snmpd.conf to get snmpd to listen to external requests.

interface eth0
agentaddress 217.195.248.251:161

I eventually found the solution at debianhelp.org.

3 Responses to “Debian Lenny snmpd IP binding”

Jason Spears wrote a comment on 16 Jan 2009

This was helpful, but in addition I discovered that 127.0.0.1 is hardcoded in SNMPDOPTS in /etc/default/snmpd. Once I took this out the agentaddress was obeyed.

phat wrote a comment on 2 May 2009

Thanks to Jason Spears, removed the 127.0.0.0.1 from /etc/default/snmpd and it works like a charm. Using shorewall firewall that blocks external snmpd requests so I don’t care about binding it to a specific IP :)

Happytimes!

Bebbet wrote a comment on 7 Nov 2009

Ty, was looking for this a long time!