Implement a basic SNMP listener

All community strings are logged as they are sent to the server.
This initial implementation only supports SNMPv1 and SNMPv2c.

`pyasn1` is required for this server to function.
This commit is contained in:
Stephen Shkardoon 2022-11-06 01:27:28 +13:00
parent 59daf46b93
commit 9d4f919b39
No known key found for this signature in database
GPG key ID: ADFF3AD7A96CACFF
5 changed files with 58 additions and 0 deletions

View file

@ -365,6 +365,10 @@ def main():
threads.append(Thread(target=serve_thread_udp, args=('', 53, DNS,)))
threads.append(Thread(target=serve_thread_tcp, args=(settings.Config.Bind_To, 53, DNSTCP,)))
if settings.Config.SNMP_On_Off:
from servers.SNMP import SNMP
threads.append(Thread(target=serve_thread_udp, args=('', 161, SNMP,)))
for thread in threads:
thread.daemon = True
thread.start()