OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: feld on February 05, 2024, 05:31:09 PM

Title: SNMPv3 not working
Post by: feld on February 05, 2024, 05:31:09 PM
Hello,

After upgrading to 24.1 my SNMPv3 user no longer works. If I add in a community and try to snmpbulkwalk with v2 it works fine, but with SNMPv3 it always gives me an error.


Error in packet.
Reason: authorizationError (access denied to that object)
Failed object:


I've checked multiple times and the username, SHA, and AES settings are all correct. They just don't work.
Title: Re: SNMPv3 not working
Post by: feld on February 05, 2024, 05:39:20 PM
If I attempt to login and manually create the user I get the following error, so it's a compile-time issue with net-snmp


# net-snmp-config --create-snmpv3-user
Enter a SNMPv3 user name to create:
snmpro
Enter authentication pass-phrase:
REDACTED
Enter encryption pass-phrase:
  [press return to reuse the authentication pass-phrase]
REDACTED
adding the following line to /var/net-snmp/snmpd.conf:
   createUser snmpro MD5 "REDACTED" DES "REDACTED"
adding the following line to /share/snmp/snmpd.conf:
   rwuser snmpro
touch: /share/snmp/snmpd.conf: No such file or directory
/usr/local/bin/net-snmp-create-v3-user: cannot create /share/snmp/snmpd.conf: No such file or directory