Now, you can install Snort by typing the following:
# sudo apt-get -y install snort-mysql
During the installation, provide the IP address for your local network. Select to configure the snort database manually to connect with the previously created database.
4. Configure the Snort IDS:
Update the database with the snort table structure.
# pushd /usr/share/doc/snort-mysql # /usr/share/doc/snort-mysql$ sudo zcat create_mysql.gz | mysql -u snort -p snort password: # popd
Modify the snort configuration file to include MySQL-specific information.
# sudo sed -i "s/output\ log_tcpdump:\ tcpdump.log/#output\ log_tcpdump:\ tcpdump.log\noutput\ database:\ log,\ mysql, user=snort password= dbname=snort host=localhost/" /etc/snort/snort.conf
Remove pending configuration file:
# sudo rm -rf /etc/snort/db-pending-config
For Debian or Ubuntu, you might have to check /etc/snort/database.conf for the proper value of the database, user, password, and host.
You might also have to change ‘ipvar HOME_NET any’ to your home subnet like:
ipvar HOME_NET 192.168.1.1/24 in /etc/snort/snort.conf
5. Start the Snort service:
# sudo /etc/init.d/snort start # sudo /etc/init.d/snort status # tail /var/log/syslog
Snort should successfully start.
If it fails, please try to execute the following command and detect the actual reason for the error:
# sudo /usr/sbin/snort -c /etc/snort/snort.conf -i eth0
You may have to select a proper interface for your system instead of eth0.
6. Install ACID:
We need to install a web front end to monitor Snort’s output. ACID solves the purpose.
Follow the following steps to install ACID.
# sudo apt-get -y install acidbase
During installation, select MySQL database and MySQL administrator password.
7. Configure ACID:
We need to configure ACID now.
# sudo sed -i "s#allow\ from\ 127.0.0.0/255.0.0.0#allow\ from\ 127.0.0.0/255.0.0.0\ 10.10.1.10/255.255.255.0#" /etc/acidbase/apache.conf
You would need to give your IP instead of 10.10.1.10.
This step will allow access to acidbase from your desktop.
Restart the Apache server for the changes to take effect.
# sudo /etc/init.d/apache2 restart
8. Access Acidbase:






0 Comments