Installasi Snort
1. apt install build-essential libpcap-dev libpcre3-dev libnet1-dev zlib1g-dev luajit hwloc libdnet-dev libdumbnet-dev bison flex liblzma-dev openssl libssl-dev pkg-config libhwloc-dev cmake cpputest libsqlite3-dev uuid-dev libcmocka-dev libnetfilter-queue-dev libmnl-dev autotools-dev libluajit-5.1-dev libunwind-dev
2.
mkdir snort-source-files cd snort-source-files
3.
git clone https://github.com/snort3/libdaq.git cd libdaq ./bootstrap ./configure make make install
4.
cd ../ wget wget https://github.com/gperftools/gperftools/releases/download/gperftools-2.8/gperftools-2.8.tar.gz tar xzf gperftools-2.8.tar.gz cd gperftools-2.8/ ./configure make make install
5. Install Snort 3 from Source Code on Ubuntu 20.04
cd ../ git clone git://github.com/snortadmin/snort3.git cd snort3/ ./configure_cmake.sh --prefix=/usr/local --enable-tcmalloc
Jika masih terjadi masalah saat melakukan compile snort dengan perintah di atas , kesalahan pada liblzma-dev. Maka lakukan installasi ulang liblzma-dev dengan menggunakan aptitude. Install aptitude terlebih dahulu :
apt-get install aptitude aptitude install liblzma-dev
kemudian jalankan lagi ./configure_cmake.sh --prefix=/usr/local --enable-tcmalloc hingga success.
cd build make make install
Setelah penginstalan selesai, perbarui pustaka bersama;
ldconfig
cek versi snort yang terinstall
snort -V
Mengetahui perintah pada saja yang dapat di operasikan di snort
snort -?
Sumber : https://kifarunix.com/install-and-configure-snort-3-nids-on-ubuntu-20-04/