![]() |
Now serving 108 guides. |
|
Setting up Snort and Snortreport General Information Any private network should be running some sort of Intrusion Detection System for system adminstrators to watch for any malicious traffic. In this guide you will learn how to set up snort and one of its reporting utilities, snortreport.Requirements
Installation Snort Installation of snort is pretty straight forward.
Snortreport Snortreport uses php4-gd and jpgraph to display a pretty chart, so if you didn't compile php4 with GD support and don't have jpgraph installed, let's do it now.
Configuration Snort Snort gets launched from /etc/rc.conf on bootup so we need to add it.
Snortreport First we need to edit the config file for Snortreport for MySQL database access.
/usr/local/www/snortreport.Now that your new Snort IDS is installed and running, you can either view the logs at /var/log/snort/alert or have Snortreport parse them for you at http://localhost/snortreport, or wherever you have Snortreport configured on your webserver. To test snort, simply run a port-scan.Author: Jon LaBass Find this guide useful?
Support the author: 4 Comments Posted by dataefx on June 13, 2005 at 11:11:45 pm PDT
If snort fails to start after rebooting the system -- possibly giving the following error message:
snort: FATAL ERROR: database: mysql_error: can't connect to local MySQL server through /tmp/mysql.sock (2) -- edit the snort.sh script in /usr/local/etc/rc.d, and insert this command (before the varibles) sleep 5 it will allow the MySQL server to start properly and initialize snort without conflict -- Posted by d34m0n1x on June 13, 2005 at 11:11:45 pm PDT
I have the same problem (error 2002)without snort installed. You did something wrong when you've installed mysql server.
Posted by wizard on June 13, 2005 at 11:11:45 pm PDT
Hi , all works fine great guide , the directory
/usr/ports/security/snort/work/snort-*/contrib is changed now is ../schemas. on FreeBSD 5.1 Have a nice day Posted by avcar on December 20, 2010 at 2:16:47 am PST
Snort report is not getting generated properly..
the following is the srconf.php <? // Snort Report 1.3.1 // December 21, 2005 // Copyright (C) 2000-2005 Symmetrix Technologies, LLC. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // // Current version of Snort Report $srVersion = "Snort Report Version 1.3.1"; // // PLEASE SET THE FOLLOWING VARIABLES TO MATCH YOUR SYSTEM // // Put your snort database login credentials in this section $server = "localhost"; $user = "snort"; $pass = "snort123; $dbname = "snort"; // use either "mysql" or "pgsql" below, depending on your database $dbtype = "mysql"; // Change to FALSE if GD *and* JPGraph are not installed $haveGD = TRUE; // Relative path to JPGraph // You need to have jpgraph and jpgraph_pie installed to see the chart. // Change the variable below to reflect the location of jpgraph relative // to Snort Report, for example "../jpgraph/", etc. define("JPGRAPH_PATH", "var/www/html/jpgraph/"); // Path to external utilities // Enter the correct path (including the binary) to nmap and nbtscan if you have them installed // You can also include switches for each binary (see nmap) define("NMAP_PATH", "/usr/bin/nmap -v"); define("NBTSCAN_PATH", "/usr/bin/nbtscan"); tar -zxvf snortreport-1.3.1.tar.gz // Custom microtiming functions for profiling pages - available from http://improbable.org/chris/software/profiling.phps define("PROFILING", false); if (PROFILING) { require_once("profiling.phps"); } // // YOU DON'T NEED TO MODIFY ANYTHING UNDER THIS LINE // // Open a connection to the database require_once("DB.php"); $db = new DB; $db->setinst($server); $db->setuser($user); $db->setpass($pass); $db->dbname($dbname); $db->persist(); $conn = $db->connect(); define("FULL_DATETIME_FORMAT", "Y-m-d H:i:s"); set_time_limit(1800); require_once("info-retrieval.php"); ?> http://localhost/snortreport-1.3.1/alerts.php] http://localhost/snortreport-1.3.1/alerts.php[/URL] Snort Report M e n u Alerts Snort Home Snort Report Home setinst($server); $db->setuser($user); $db->setpass($pass); $db->dbname($dbname); $db->persist(); $conn = $db->connect(); define("FULL_DATETIME_FORMAT", "Y-m-d H:i:s"); set_time_limit(1800); require_once("info-retrieval.php"); ?> [/EMAIL] |
Copyright 2003 - 2012 BSD Guides. All rights reserved. |
About | Terms of Use | Privacy | Contact |

