Replace this line:

com2sec notConfigUser  default       Somecommunity

With a line like this:

com2sec notConfigUser  192.168.0.2       Somecommunity

That is for a specific IP, you could also restrict
access to a subnet by using 192.168.0.0/24 (or
whatever mask you want to use).

-Jesse

--- Cesar Lagarrigue Vega <[EMAIL PROTECTED]> wrote:

> Hello to all
> 
>     Well my system is up, but i like to close the
> access for snmp in 
> linux, just like windows giev only one ip for query
> snmp.
> 
> This the snmp conf gave zenoss default conf.
> 
> Many thanks to all.
> 
> Cesar L.
> ---------------------
> 
> ####
> # First, map the community name "public" into a
> "security name"
> 
> #       sec.name  source          community
> com2sec notConfigUser  default       Somecommunity
> 
> ####
> # Second, map the security name into a group name:
> 
> #       groupName      securityModel securityName
> group   notConfigGroup v1           notConfigUser
> group   notConfigGroup v2c           notConfigUser
> 
> ####
> # Third, create a view for us to let the group have
> rights to:
> 
> # Make at least  snmpwalk -v 1 localhost -c public
> system fast again.
> #       name           incl/excl     subtree        
> mask(optional)
> view    systemview    included   .1
> 
> ####
> # Finally, grant the group read-only access to the
> systemview view.
> 
> #       group          context sec.model sec.level
> prefix read   write  
> notif
> access  notConfigGroup ""      any       noauth   
> exact  systemview 
> none none
> 
> 
> 
> 
>
###############################################################################
> # System contact information
> #
> 
> # It is also possible to set the sysContact and
> sysLocation system
> # variables through the snmpd.conf file:
> 
> syslocation Unknown (edit /etc/snmp/snmpd.conf)
> syscontact Root <[EMAIL PROTECTED]> (configure
> /etc/snmp/snmp.local.conf)
> 
> 
> # Added for support of bcm5820 cards.
> pass .1 /usr/bin/ucd5820stat
> 
>
###############################################################################
> # Further Information
> #
> #  See the snmpd.conf manual page, and the output of
> "snmpd -H".
> trapcommunity public
> trapsink default
> 
> _______________________________________________
> zenoss-users mailing list
> [email protected]
>
http://lists.zenoss.org/mailman/listinfo/zenoss-users
> 



 
____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to