Snort is an open source intrusion detection system (IDS). Its highly configurable and can be run in a number of modes and architectures, There are a small number of freely available rules to use. For more information refer to the Snort home page
http://www.snort.org/. Here are some instructions on getting it setup on CentOS, these were adapted from the Snort Documentation by Patrick Harper at
http://assets.sourcefire.com/snort/setupguides/Snort_Base_Minimal.pdf;
- yum install mysql mysql-bench mysql-server mysql-devel mysqlclient10 php-mysql httpd gcc pcre-devel php-gd gd mod_ssl glib2-devel gcc-c++ php php-pear libpcap-devel
- vi /etc/httpd/conf/httpd.conf #Edit the httpd.conf file to suit
- /etc/rc.d/init.d/httpd start
- /etc/rc.d/init.d/mysqld restart
- /usr/bin/mysql_secure_installation
- cd /root
- mkdir snortinstall
- cd snortinstall
- wget http://dl.snort.org/snort-current/snort-2.8.5.3.tar.gz
- tar zxvf snort-2.8.5.3.tar.gz
- cd snort-2.8.5.3
- ./configure --with-mysql --enable-dynamicplugin # Fingers crossed it all goes well
- make
- make install
- /usr/sbin/groupadd snort
- /usr/sbin/useradd -g snort snort -s /sbin/nologin
- mkdir -p /etc/snort/rules
- mkdir -p /var/log/snort
- cd /root/snortinstall/snort-2.8.5.3/etc
- cp ./* /etc/snort/
- cd /root/snortinstall
- wget http://www.emergingthreats.net/rules/emerging.rules.tar.gz
- tar zxvf emerging.rules.tar.gz
- cd rules
- cp ./* /etc/snort/rules/
- vi /etc/snort/snort.conf # Edit the snort.conf file to suit
- /etc/rc.d/init.d/mysqld start
- mysql -u root -p mysql # Create the snort database and snort database user and set permissions
- cd /root/snortinstall/snort-2.8.5.3/schemas
- mysql -u snort -p snort < create_mysql
- pear install -a Image_Graph-alpha Image_Canvas-alpha Image_Color Numbers_Roman
- cd /root/snortinstall/
- wget http://downloads.sourceforge.net/project/adodb/adodb-php5-only/adodb-510-for-php5/adodb510.tgz?use_mirror=transact
- wget http://downloads.sourceforge.net/project/secureideas/BASE/base-1.4.4/base-1.4.4.tar.gz?use_mirror=transact
- cd /var/www
- tar zxvf /root/snortinstall/adodb510.tgz
- mv adodb5/ adbodb
- cd /var/www/html/
- tar zxvf /root/snortinstall/base-1.4.4.tar.gz
- mv base-1.4.4/ base
- cd base
- cp base_conf.php.dist base_conf.php
- vi base_conf.php # Edit the file to suit
- # Load http://SERVERNAME/base in a browser and click on the setup link
- # Click on Create BASE AG button
- # Click on the Main Page link
SQL
- create database snort;
- create user 'snort'@'localhost' identified by '';
- grant create, insert, select, delete, update on snort.* to snort@localhost;
- grant create, insert, select, delete, update on snort.* to snort;
No comments:
Post a Comment