How To Install Snort On An Ubuntu 18
How To Install Snort On An Ubuntu 18
How To Install Snort On An Ubuntu 18
Prerequisites
A VPS/Dedicated server running Ubuntu 18.04
A non-root user with sudo privileges
Steps
Update system packages
1. $ sudo apt update && sudo apt upgrade
We will be installing a number of source files so you would want to create a
folder to hold these packages.
1. $ mkdir snort_src && cd snort_src
Install Snort
We first need to install the Data Acquisition Library (DAQ) from snort’s
website:
1. $ cd ~/snort_src
2. $ wget https://www.snort.org/downloads/snortplus/daq-2.2.2.tar.gz
3. $ tar -xzvf daq-2.2.2.tar.gz
4. $ cd daq-2.2.2
5. $ ./configure
6. $ make
7. $ sudo make install
Update the shared libraries
1. $ sudo ldconfig
Finally, download snort source code and install it:
1. $ cd ~/snort_src
2. $ git clone git://github.com/snortadmin/snort3.git
3. $ cd snort3
4. $ ./configure_cmake.sh --prefix=/usr/local --enable-tcmalloc
5. $ cd build
6. $ make
7. $ sudo make install
You can check whether snort has been installed:
1. $ /usr/local/bin/snort -V
Conclusion
If you have received the same output like the one above, it means you have
successfully installed snort on your VPS/Dedicated host. The next step would
be to permanently configure the global variables needed to run snort.