Comment 2 for bug 1742671

Revision history for this message
Christian Ehrhardt  (paelzer) wrote :

Hi Tom,
thank you for your report.
First of all I can confirm your issue.

In a fresh container triggerable with:
$ apt install snmp snmpd
$ echo > /etc/snmp/snmpd.conf << EOF
agentAddress udp:161,udp6:[::1]:161
view limited_vw included .1.3.6.1.2.1.1
view limited_vw included .1.3.6.1.2.1.2
view limited_vw included .1.3.6.1.2.1.4.31
access limited_grp "" usm priv exact limited_vw none none
sysLocation dummylocation
sysContact dummycontact
createUser limited SHA "password" AES "password"

I tested 16.04 but also the most recent 18.04 - it triggers the issue everywhere.

rouser limited priv -V limited_vw
createUser unlimited SHA "password" AES "password"
rouser unlimited priv
EOF
$ systemctl restart snmpd

# Now the unlimited case is fine:
$ snmpwalk -v3 -u unlimited -l authPriv -a SHA -x AES -A password -X password localhost
# Also the bulkwalk with the limited user is good
$ snmpbulkwalk -v3 -u limited -l authPriv -a SHA -x AES -A password -X password localhost
# But as reported the following seems to hang the server (command hangs, further commands hang immediately)
$ snmpwalk -v3 -u limited -l authPriv -a SHA -x AES -A password -X password localhost