slayercat / GoSNMPServer

GoSNMPServer is an SNMP server library fully written in Go. It provides Server Get, GetNext, GetBulk, Walk, BulkWalk, Set and Traps. It supports IPv4 and IPv6, using SNMPv2c or SNMPv3.
BSD 2-Clause "Simplified" License
90 stars 51 forks source link

SNMPv2c does not work anymore (ErrNoPermission) #28

Closed vincentbernat closed 6 months ago

vincentbernat commented 6 months ago
$ go run github.com/slayercat/GoSNMPServer/cmd/gosnmpserver@v0.5.1 run-server --community public
$ snmpwalk -v2c -c public 127.0.0.1:1161
[...]
INFO[0000] ListenUDP: l3proto=udp, address=127.0.0.1:1161
INFO[0002] udp request from 127.0.0.1:39858. size=40
WARN[0002] ResponseForBuffer Error: ErrNoPermission. without result
INFO[0003] udp request from 127.0.0.1:39858. size=40
WARN[0003] ResponseForBuffer Error: ErrNoPermission. without result
INFO[0004] udp request from 127.0.0.1:39858. size=40
WARN[0004] ResponseForBuffer Error: ErrNoPermission. without result

Dunno if it's related to #27 and #23. It does not work with 0.5 either.

slayercat commented 6 months ago

Thank you very much for dedicating your time to identify this issue. We sincerely apologize for the inconvenience caused due to the lack of comprehensive testing previously.

We have released a new version addressing the problem you highlighted. Thanks for try it out.

slayercat commented 6 months ago

I believe that with the release of the new version, this issue has been resolved. If the problem persists, please feel free to reopen this issue or create a new one.