PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : snmpd.conf und snmpv3



mordur
20.06.08, 10:31
moins,

ich möchte auf dem SuseServer einen SNMP-Dienst laufen lassen, der nix weiter macht, als gegen Authentifiezierung genau eine einzige OID auszulesen und zurückzugeben.

Dazu ist net-snmp installiert.
Meine snmpd.conf sieht so aus:


# Please see /usr/share/doc/packages/net-snmp/EXAMPLE.conf for a
# more complete example and snmpd.conf(5).
#
# Writing is disabled by default for security reasons. If you'd like
# to enable it uncomment the rwcommunity line and change the community
# name to something nominally secure (keeping in mind that this is
# transmitted in clear text).

# don't use ' < > in strings for syslocation or syscontact
# Note that if you define the following here you won't be able to change
# them with snmpset
syslocation Server Room
syscontact Sysadmin (root@localhost)

# These really aren't meant for production use. They include all MIBS
# and can use considerable resources. See snmpd.conf(5) for information
# on setting up groups and limiting MIBS.
engineID alba
com2sec albnet 192.168.1.0/24 public
group albgroup usm albnet
view all included interfaces.ifTable.ifEntry.ifIndex.1 ff.a0
access albgroup "" any noauth exact all all all



In die /var/lib/snmp/snmpd.conf habe ich noch eingetragen:

createUser user1 MD5 passwort1 DES password2

Nach neustart des snmp-Daemon versuche ich über einen Client(GUI auf Windows-PC) einen Kontakt zum Server.

Der sagt aber immer:
Connection from UDP: [192.168.1.81]:1620
Authentication failed for user1

403
20.06.08, 14:44
ja, also Authentication failed fuer user1. Macht snmpv3 ueberhaupt DES? Ist schon bissl her, dass man
damit gearbeitet hatte. STFW mal danach ;) Und pruef die Pfade zur snmpd.conf

Gruss 403