CENTOS 6 Getting Started With Suricata
CENTOS 6 Getting Started With Suricata
CENTOS 6 Getting Started With Suricata
INTRO:
This is a guide to install Suricata with PF_RING. This installation was completed using Virtualbox version 4.0.6 and CentOS 6.0-i386.
Sections:
1. Basic Suricata installation and how to enable some features 2. PF_RING (capture accelerator) Suricata installation with features from Section 1 3. Suricata Configuration
X86_64:
sudo rpm -Uvh http://rules.emergingthreatspro.com/projects/emergingrepo/x86_64/libnetfilter _queue-0.0.15-1.x86_64.rpm \ http://rules.emergingthreatspro.com/projects/emergingrepo/x86_64/libnetfilter _queue-devel-0.0.15-1.x86_64.rpm \ http://rules.emergingthreatspro.com/projects/emergingrepo/x86_64/libnfnetlink -0.0.30-1.x86_64.rpm \
http://rules.emergingthreatspro.com/projects/emergingrepo/x86_64/libnfnetlink -devel-0.0.30-1.x86_64.rpm # cd /opt # wget http://www.openinfosecfoundation.org/download/suricata-1.0.5.tar.gz # tar -xvfz suricata-1.0.5.tar.gz # cd suricata-1.0.5 #sudo ./configure #sudo make #sudo make install --enable-nfqueue
To install enable additional features of Suricata , install the following packages and append the ./configure line as stated: To Enable HTP Library(HTML pre-processor) feature:
#wget http://www.openinfosecfoundation.org/download/libhtp-0.2.3.tar.gz #tar -xzvf libhtp-0.2.3.tar.gz #cd libhtp-0.2.3 #./configure #make #make install
2.PF_RING installation This installation will install PF_RING as well as enable the above features. 2.1 Download the required packages:
#apt-get install build-essential libpcre3-dev libpcap-dev libnet1-dev libyamldev libnetfilter-queue-dev zlib1g-dev htp subversion flex bison kernel-devel dkms nano
*Note* Please you will need to download the correct kernel headers for your specific system
At the end the install command you should get DKMS: INSTALL Completed *NOTE* To remove the pf_ring driver type the following command:
#sudo dkms remove m pf_ring v 4 --all
3.3 Adding Rules to Suricata See Suricata Wiki: https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Rule_Management_with_Oink master 3.4.Run Suricata:
#sudo /opt/PF_RING/bin/suricata c /etc/suricata/suricata.yaml i eth0