Skip to content

Instantly share code, notes, and snippets.

@TimRots
Created December 13, 2020 01:55
Show Gist options
  • Save TimRots/30d0fa3bed96370e57f509942f5050b2 to your computer and use it in GitHub Desktop.
Save TimRots/30d0fa3bed96370e57f509942f5050b2 to your computer and use it in GitHub Desktop.
compile net-snmp 5.9 with --enable-blumenthal-aes to Enable AES-192/AES-256 (Blumenthal draft)
#!/usr/bin/env bash
## compile net-snmp 5.9 with --enable-blumenthal-aes to Enable AES-192/AES-256 (Blumenthal draft)
## Authentication support: MD5 SHA1 SHA224 SHA256 SHA384 SHA512
## Encryption support: DES AES AES128 AES192 AES192C AES256 AES256C
apt update -y && apt upgrade -y file libperl-dev\
&& wget http://sourceforge.net/projects/net-snmp/files/net-snmp/5.9/net-snmp-5.9.tar.gz \
&& tar xzvf net-snmp-5.9.tar.gz \
&& cd net-snmp-5.9 \
&& CC=gcc ./configure --disable-debugging --disable-manuals --enable-shared --enable-mini-agent --enable-ipv6 --without-rpm --disable-embedded-perl --without-perl-modules --enable-blumenthal-aes --with-default-snmp-version="3" --with-security-modules="usm" --with-sys-location="Unknown" --with-gnu-ld --prefix=/usr --with-logfile="/var/log/snmpd" --with-sys-contact="@@no.where" --with-persistent-directory="/var/net-snmp" \
&& make -j$(nproc) && make install \
&& cd .. \
&& rm -rf net-snmp-5.9 \
&& rm -f net-snmp-5.9.tar.gz \
&& rm -rf /var/lib/apt/lists/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment