snmp.conf how to allow any remote client
7,849
rocommunity public
But please rethink this. Letting anybody in the world get your SNMP data is generally a bad idea.
Related videos on Youtube
Author by
Avihai Marchiano
Updated on September 18, 2022Comments
-
Avihai Marchiano over 1 year
Using linux (Ubuntu) with net-snmp.
I want to allow any remote client to execute snmpget. The remote client not have to be from the same subnet , so i cannot do this by define subnet.
Now i add line in snmpd.conf for each ip. like this:
rwcommunity community 10.0.0.1 rwcommunity community 10.0.0.2
is there a way to do this for all ips? In addtional try to use this :
# Listen for connections on all interfaces (both IPv4 *and* IPv6) #agentAddress udp:161,udp6:[::1]:161
didn't worked , so i need to wrote the listening ip.
thank you!!!!
-
Avihai Marchiano over 11 yearsIt local netwrok.can you please help on how to listen for connections on all interfaces it dosnt work for me. (without #)