Created
December 13, 2020 01:55
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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