[Solved] Snmpd to listen only on LAN interface

Hi all,
I have just installed snmpd.
By default it is listening on ALL interfaces:

root@OpenWrt:~# netstat -an | grep 161
udp        0      0 0.0.0.0:161             0.0.0.0:*

How can I force it to listen only on br-lan ?
I believe this could be something to do with following entries in /etc/config/snmpd
Does anyone have example entry?


config agent
	option agentaddress UDP:161
config agentx
	option agentxsocket /var/run/agentx.sock

Try this one:

2 Likes

magic :smile:

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.