hi,
SNMPD is running fine but it just don't accept requests
Code:
machine:~# nmap localhost -p 161
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2009-09-01 11:10 BRT
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
161/tcp closed snmp
Nmap finished: 1 IP address (1 host up) scanned in 0.036 seconds
machine:~# ps aux | grep snmp
snmp 5236 0.0 0.3 7972 3916 ? S 11:08 0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1
root 5260 0.0 0.0 2876 756 pts/0 S+ 11:10 0:00 grep snmp
machine:~# iptables -L INPUT
Chain INPUT (policy ACCEPT)
target prot opt source destination
machine:~#
(part of the) configuration file:
Code:
####
# First, map the community name (COMMUNITY) into a security name
# (local and mynetwork, depending on where the request is coming
# from):
# sec.name source community
#com2sec paranoid default public
com2sec readonly default public
#com2sec readwrite default private
####
# Second, map the security names into group names:
# sec.model sec.name
group MyROSystem v1 paranoid
group MyROSystem v2c paranoid
group MyROSystem usm paranoid
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
group MyRWGroup v1 readwrite
group MyRWGroup v2c readwrite
group MyRWGroup usm readwrite
####
# Third, create a view for us to let the groups have rights to:
# incl/excl subtree mask
view all included .1 80
view system included .iso.org.dod.internet.mgmt.mib-2.system
####
# Finally, grant the 2 groups access to the 1 view with different
# write permissions:
# context sec.model sec.level match read write notif
access MyROSystem "" any noauth exact system none none
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none
# -----------------------------------------------------------------------------
regards