OpenBSD has an SNMP server built in (snmpd), as well as an SNMP client (snmpctl)
OpenBSD includes SNMP info ("mibs") for CARP, relayd, and pf as well as the standard ones
Server (10.0.2.35)
# cat /etc/snmpd.conf listen on 10.0.2.35 seclevel enc user "snmp" authkey "s3cr3t00" enckey "s3cr3t00" enc aes auth hmac-sha1 # chown root:_snmpd /etc/snmpd.conf `# root is owner, _snmpd is group` # chmod u=w,g=r,o= /etc/snmpd.conf `# root write, _snmpd read, other nothing` # rcctl enable snmpd # rcctl start snmpd
Need to check your config?
# snmpd -n
Need to debug snmpd?
# snmpd -dvv
Client
# pkg_add net-snmp # cat /etc/snmp/snmp.conf defSecurityName snmp defSecurityLevel authPriv defPassphrase "s3cr3t00" defAuthType SHA defPrivType AES # chown root:wheel `# root is owner, wheel is group` # chmod u=w,g=r,o= /etc/snmp/snmp.conf `# root write, wheel read, other nothing` # snmpwalk 10.0.2.35 | less `# shows much info from remote system`
1 comment:
snmp3 is insecure anyway. snmp never ever got proper attention in the industry because theres too much money in shitty snmp. the choice to stick with v2 of snmp was a deliberate one. if youre using snmp you should use ipsec or ssl or ssh as a wrapper. snmp3 doesnt add much security at all.
Post a Comment