<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://commons.oreilly.com/wiki/skins/common/feed.css?97"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Snort Cookbook/Administrative Tools - Revision history</title>
		<link>http://commons.oreilly.com/wiki/index.php?title=Snort_Cookbook/Administrative_Tools&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.11.0</generator>
		<lastBuildDate>Sat, 25 May 2013 22:30:33 GMT</lastBuildDate>
		<item>
			<title>Docbook2Wiki: Initial conversion from Docbook</title>
			<link>http://commons.oreilly.com/wiki/index.php?title=Snort_Cookbook/Administrative_Tools&amp;diff=25369&amp;oldid=prev</link>
			<description>&lt;p&gt;Initial conversion from Docbook&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Snort Cookbook/TOC}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Your IDS is installed and configured, and it is happily generating logs and alerts, so now what do you do? One of the biggest issues with managing an IDS implementation is handling the potentially large numbers of alerts and logs. If your IDS is configured on a public network that receives a lot of traffic, you could potentially see thousands of alerts a day, from script kiddy scans to worms and other exploits. There are several Snort add-on tools that help you correlate and analyze Snort output data. You can find anything from full-fledged alert-management systems with web frontends to simple purpose-built scripts. This chapter explores some of the most popular tools for administering your Snort implementation: IDScenter, SnortCenter, ACID, SWATCH, Snortsnarf, Barnyard, IDS Policy Manager, HenWen, and Webmin. Some of the functionality for these tools overlaps. However, each has its own benefits and function. The good thing is that you can experiment with all of them to see which ones best suit your needs, because they are all free!&lt;br /&gt;
&lt;br /&gt;
== Managing Snort Sensors ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You need an easy-to-use GUI management console to manage your Snort sensors.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
Use SnortCenter or IDS Policy Manager to manage your distributed Snort sensors remotely.&lt;br /&gt;
&lt;br /&gt;
Use IDScenter to manage a Windows Snort sensor locally.&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
Managing numerous Snort sensors in a distributed environment via the command line and editing configuration files can sometimes be a tedious task. Fortunately, there are several GUI methods you can use to manage your Snort sensors efficiently.&lt;br /&gt;
&lt;br /&gt;
SnortCenter manages remote sensors in a web-based client-server method. It is written in PHP and Perl. Both the management console and sensor agents can be installed on Unix and Windows. The management console allows you to build configuration files and then send them to the remote sensors. SnortCenter has several useful features, including: encryption of client-server traffic, authentication, the ability to push new configurations, and the ability to update and import new Snort signatures automatically.&lt;br /&gt;
&lt;br /&gt;
IDS Policy Manger is also used to manage remote sensors in a distributed Snort environment. It is written in Visual Basic and runs on Windows NT, 2000, and XP. IDS Policy Manager is a graphical interface that allows you to manage rules and configuration files on remote Snort sensors. It can be used to manage both Unix and Windows sensors by using standard protocols. IDS Policy Manager has several useful features, including: the ability to merge new rules into existing rule files, the ability to update rules via the Web, and the ability to securely upload and download configuration changes via secure copy (scp).&lt;br /&gt;
&lt;br /&gt;
IDScenter can be used to manage Windows Snort sensors locally via a graphical user interface. IDScenter provides full configuration and management of the Snort sensor, and includes many feature enhancements, such as configuration wizards, alert file monitoring, log rotation, integrated log viewer, and automatic program execution upon attack detection. However, since IDScenter runs only on the local sensor, it cannot be used to manage multiple remote sensors in a distributed environment.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Administrative Tools#Installing and Configuring IDScenter|Recipe 5.2]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Administrative Tools#Installing and Configuring SnortCenter|Recipe 5.3]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Administrative Tools#Administering Snort with IDS Policy Manager|Recipe 5.10]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing and Configuring IDScenter ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You want to use IDScenter to manage your Windows Snort Sensor.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
Before installing IDScenter, follow the [[Snort Cookbook/Installation and Optimization#Installing Snort on Windows|Recipe 1.4]] recipe to install WinPcap and Snort.&lt;br /&gt;
&lt;br /&gt;
ol&lt;br /&gt;
lidivDownload the latest zipped version of IDScenter from the following site: . The latest stable version at the time of this writing is Version 1.1 RC4.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivUnzip the installer and double-click the ''setup.exe'' file to start the installation.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivThe first screen ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-1|Figure 5-1]]) states, &amp;quot;This will install Snort IDScenter 1.1 RC4. Do you wish to continue?&amp;quot; Click Yes.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-1&amp;quot;&lt;br /&gt;
'''Figure 5-1. IDScenter installation'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt496-web.png|IDScenter installation]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivThe next screen ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-2|Figure 5-2]]) welcomes you to the Snort IDScenter 1.1 RC4 Setup Wizard. Click Next to continue.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-2&amp;quot;&lt;br /&gt;
'''Figure 5-2. IDScenter Setup Wizard'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt497-web.png|IDScenter Setup Wizard]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivRead and accept the license agreement to continue ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-3|Figure 5-3]]). Click Yes to continue.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-3&amp;quot;&lt;br /&gt;
'''Figure 5-3. IDScenter License Agreement'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt498-web.png|IDScenter License Agreement]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivSelect a destination directory for IDScenter ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-4|Figure 5-4]]). The default is ''C:\Program Files\IDScenter''. Choose a directory, or accept the default and click Next to continue.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-4&amp;quot;&lt;br /&gt;
'''Figure 5-4. IDScenter Destination Directory'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt499-web.png|IDScenter Destination Directory]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivSelect a Start Menu folder for IDScenter ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-5|Figure 5-5]]). The default is ''Engage Security\Snort IDScenter''. Choose a folder or accept the default and click Next to continue.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-5&amp;quot;&lt;br /&gt;
'''Figure 5-5. IDScenter Start Menu Folder'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt500-web.png|IDScenter Start Menu Folder]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivSelect the additional tasks such as creating a desktop icon and creating a quick launch icon, and click Next to continue ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-6|Figure 5-6]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-6&amp;quot;&lt;br /&gt;
'''Figure 5-6. IDScenter icon creation'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt501-web.png|IDScenter icon creation]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivThe Ready to Install window allows you to review your settings ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-7|Figure 5-7]]). If they are correct, click Install to being the installation. If they are incorrect, use the Back button to select the appropriate settings.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/ol&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-7&amp;quot;&lt;br /&gt;
'''Figure 5-7. IDScenter installation confirmation'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt502-web.png|IDScenter installation confirmation]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
The install progress bar will appear and the application will install. However, even when it gets to 100 percent, the window will remain and you won't be able to close it. This is because the IDScenter icon is now in the task tray and you must configure some initial settings before the installation completes. The following steps allow you to configure some basic settings:&lt;br /&gt;
&lt;br /&gt;
ol&lt;br /&gt;
lidivDouble-click on the IDScenter icon in the system tray. This brings up the General Configuration screen ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-8|Figure 5-8]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-8&amp;quot;&lt;br /&gt;
'''Figure 5-8. IDScenter General Configuration screen'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt503-web.png|IDScenter General Configuration screen]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivFirst, select the location of the Snort executable file. Do this by typing in the location or browsing to the location. The default Snort installation places the executable in ''C:\Snort\bin\snort.exe''.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivSelect a logging directory and standard logfile. The default Snort installation uses ''C:\Snort\log\alert.ids''. On new installs, the ''alert.ids'' file won't exist yet.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivClick on the Snort Options icon on the left side of the window. Here you must import the ''snort.conf'' file ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-9|Figure 5-9]]). Do this by typing in the location or browsing to the location. The default Snort installation places the ''snort.conf'' file in ''C:\Snort\etc\snort.conf''.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-9&amp;quot;&lt;br /&gt;
'''Figure 5-9. IDScenter general Snort options'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt504-web.png|IDScenter general Snort options]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivClick on the Wizards tab on the left side of the window. Then click on the Rules/Signatures icon. Here you must select the ''classification.config'' file to use ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-10|Figure 5-10]]). Click on the ''classification.config'' file under the Rule files list and then click Select at the bottom of the window. You should now see Classification file: classification.config.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-10&amp;quot;&lt;br /&gt;
'''Figure 5-10. IDScenter rules configuration'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt505-web.png|IDScenter rules configuration]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivClick on the Alerts tab on the left side of the window. Then click on the Alert detection icon. Here you must specify the files that IDScenter monitors for changes ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-11|Figure 5-11]]). Click on Add alert log file to add the ''C:\Snort\log\alert.ids''. You can also click on the open folder icon to add any other files that you want monitored.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-11&amp;quot;&lt;br /&gt;
'''Figure 5-11. IDScenter alert detection'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt506-web.png|IDScenter alert detection]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivClick on Apply in the top-right corner of the window. To make sure there aren't any errors, click on the General tab on the left side of the window, and then click the Overview icon. There should not be any configuration errors, if there are, make the appropriate changes to fix them ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-12|Figure 5-12]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-12&amp;quot;&lt;br /&gt;
'''Figure 5-12. IDScenter configuration overview and errors'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt507-web.png|IDScenter configuration overview and errors]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivOnce all errors are fixed, click on Test settings at the top of the window. A DOS window opens and runs the Snort executable with the configured parameters. It will alert you to any errors that it encounters. Press the Enter key to exit this screen. If you receive an error about the preprocessor, follow the directions in the next section of this recipe.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivClose the IDScenter configuration screen, and then right-click on the IDScenter system tray icon and choose exit. (You may have to do this twice.) This will stop IDScenter and allow the setup process to complete.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivThe final setup screen allows you to view the ''Readme.txt'' file and launch IDScenter ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-13|Figure 5-13]]). Click Finish to complete the installation.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/ol&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-13&amp;quot;&lt;br /&gt;
'''Figure 5-13. IDScenter setup complete'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt508-web.png|IDScenter setup complete]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
IDScenter is a nice graphical interface to use to manage your Windows Snort sensor. However, it is not updated regularly. The last update at the time of this writing was 4/8/2003, and it does have some bugs. For example, make sure you have a backup of the ''snort.conf'' file. IDScenter makes changes to the file and leaves some errors. After installing IDScenter, you will need to change the following two lines:&lt;br /&gt;
&lt;br /&gt;
 preprocessor http_inspect: global \&lt;br /&gt;
 preprocessor http_inspect_server: server default \&lt;br /&gt;
&lt;br /&gt;
To the following:&lt;br /&gt;
&lt;br /&gt;
 preprocessor http_inspect: global \&lt;br /&gt;
 iis_unicode_map unicode.map 1252&lt;br /&gt;
 preprocessor http_inspect_server: server default \&lt;br /&gt;
 profile all ports { 80 8080 8180 } oversize_dir_length 500&lt;br /&gt;
&lt;br /&gt;
When IDScenter changes the ''snort.conf'' file, it actually leaves out part of the http_inspect preprocessor configuration. To make the change, use an external editor such as ''Wordpad.exe'' to edit the ''snort.conf'' configuration file, and then reload the new configuration into IDScenter by clicking on the Reload button in the General, Snort Options area.&lt;br /&gt;
&lt;br /&gt;
Once you have made the change, click Test Settings again and you should see &amp;quot;Snort successfully loaded all rules and checked all rule chains!&amp;quot; in the test console window.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Installation and Optimization#Installing Snort on Windows|Recipe 1.4]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing and Configuring SnortCenter ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You want to use SnortCenter to remotely manage your distributed Snort sensors.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
Follow the recipes Installing and Configuring MySQL ([[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Installing and Configuring MySQL|Recipe 2.11]]) and Configuring MySQL for Snort ([[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Configuring MySQL for Snort|Recipe 2.12]]) to prepare your Snort installation for SnortCenter. Also, follow the recipe for Installing Snort on Linux or Installing Snort on Windows to install your sensors.&lt;br /&gt;
&lt;br /&gt;
First, install Apache. At the time of this writing, the current version is 2.0.50. Use the following commands to install Apache:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf httpd-2.0.50.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd httpd-2.0.50'''&lt;br /&gt;
 [root@localhost httpd-2.0.50]# '''./configure --prefix=/www --enable-so'''&lt;br /&gt;
 [root@localhost httpd-2.0.50]# '''make'''&lt;br /&gt;
 [root@localhost httpd-2.0.50]# '''make install'''&lt;br /&gt;
 [root@localhost httpd-2.0.50]# '''/www/bin/apachectl start'''&lt;br /&gt;
&lt;br /&gt;
Next, check the system to make sure the web server is working by opening a web browser and entering your IP address or &amp;quot;localhost.&amp;quot; You should see the default Apache web page.&lt;br /&gt;
&lt;br /&gt;
Next, upgrade to the latest version of libxml2. At the time of this writing, the current version is 2.6.0-1. Use the following commands to install libxml2:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost httpd-2.0.50]# '''/www/bin/apachectl stop'''&lt;br /&gt;
 [root@localhost httpd-2.0.50]# '''cd ..'''&lt;br /&gt;
 [root@localhost root]# '''rpm -Uvh libxml2-devel-2.6.0-1.i386.rpm'''&lt;br /&gt;
 [root@localhost root]# '''rpm -Uvh libxml2-python-2.6.0-1.i386.rpm'''&lt;br /&gt;
 [root@localhost root]# '''rpm -Uvh libxml2-2.6.0-1.i386.rpm'''&lt;br /&gt;
&lt;br /&gt;
Next, install PHP. At the time of this writing, the current version is 5.0.0. Use the following commands to install PHP:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf php-5.0.0.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd php-5.0.0'''&lt;br /&gt;
 [root@localhost php-5.0.0]# '''./configure --prefix=/www/php --with-apxs2='''&lt;br /&gt;
 '''/www/bin/apxs --with-config-filepath=/www/php --enable-sockets '''&lt;br /&gt;
                '''--with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local --with-gd'''&lt;br /&gt;
 [root@localhost php-5.0.0]# '''make'''&lt;br /&gt;
 [root@localhost php-5.0.0]# '''make install'''&lt;br /&gt;
 [root@localhost php-5.0.0]# '''cp php.ini-dist /www/php/php.ini'''&lt;br /&gt;
&lt;br /&gt;
You must also make the following changes to the ''/www/conf/httpd.conf'' file:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost php-5.0.0]# '''cd /www/conf'''&lt;br /&gt;
 [root@localhost conf]# '''vi httpd.conf'''&lt;br /&gt;
&lt;br /&gt;
Change the line:&lt;br /&gt;
&lt;br /&gt;
 DirectoryIndex index.html index.html.var&lt;br /&gt;
&lt;br /&gt;
to:&lt;br /&gt;
&lt;br /&gt;
 DirectoryIndex index.php index.html index.html.var&lt;br /&gt;
&lt;br /&gt;
Also, add the following line under the AddType section:&lt;br /&gt;
&lt;br /&gt;
 AddType application/x-httpd-php .php&lt;br /&gt;
&lt;br /&gt;
Next, make the following changes to create links for startup scripts so that the web server starts when you boot up in run levels 3 and 5 (run level 3 is full multiuser mode, and run level 5 is the X Window System):&lt;br /&gt;
&lt;br /&gt;
 [root@localhost conf]# '''cd /www/bin'''&lt;br /&gt;
 [root@localhost bin]# '''cp apachectl /etc/init.d/httpd'''&lt;br /&gt;
 [root@localhost bin]# '''cd /etc/rc3.d'''&lt;br /&gt;
 [root@localhost rc3.d]# '''ln -s ../init.d/httpd S85httpd'''&lt;br /&gt;
 [root@localhost rc3.d]# '''ln -s ../init.d/httpd K85httpd'''&lt;br /&gt;
 [root@localhost rc3.d]# '''cd /etc/rc5.d'''&lt;br /&gt;
 [root@localhost rc5.d]# '''ln -s ../init.d/httpd S85httpd'''&lt;br /&gt;
 [root@localhost rc5.d]# '''ln -s ../init.d/httpd K85httpd'''&lt;br /&gt;
&lt;br /&gt;
Next, test the configuration with the following commands:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost rc5.d]# '''cd /www/htdocs'''&lt;br /&gt;
 [root@localhost htdocs]# '''echo &amp;quot;?php phpinfo(); ?&amp;quot;  test.php'''&lt;br /&gt;
 [root@localhost htdocs]# '''/etc/rc5.d/S85httpd start'''&lt;br /&gt;
&lt;br /&gt;
Open the web browser again and enter ''http://IPaddress/test.php'' or ''http://localhost/test.php''. You should see a PHP table output of system information.&lt;br /&gt;
&lt;br /&gt;
Next, install CURL with the following commands:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf curl-7.12.0.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd curl-7.12.0'''&lt;br /&gt;
 [root@localhost curl-7.12.0]# '''./configure'''&lt;br /&gt;
 [root@localhost curl-7.12.0]# '''make'''&lt;br /&gt;
 [root@localhost curl-7.12.0]# '''make install'''&lt;br /&gt;
&lt;br /&gt;
Next, install the SnortCenter Management Console:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost curl-7.12.0]# '''cd ..'''&lt;br /&gt;
 [root@localhost root]# '''tar zxvf snortcenter-v1.0-RC1.tar.gz'''&lt;br /&gt;
 this creates a directory called www&lt;br /&gt;
 [root@localhost root]# '''cd www'''&lt;br /&gt;
 [root@localhost www]# '''cp -R * /www/htdocs'''&lt;br /&gt;
&lt;br /&gt;
Next install adodb. At the time of this writing, the latest version is 4.5.1:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf adodb451.tgz'''&lt;br /&gt;
 [root@localhost root]# '''cp -R ./adodb/ /www/htdocs'''&lt;br /&gt;
&lt;br /&gt;
Next, create the MySQL database:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''echo &amp;quot;CREATE DATABASE snortcenter;&amp;quot; | /usr/local/mysql/bin/mysql -u root -p'''&lt;br /&gt;
 Enter password:&lt;br /&gt;
&lt;br /&gt;
Make the following changes to the ''config.php'' file:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''cd /www/htdocs'''&lt;br /&gt;
 [root@localhost htdocs]# '''vi config.php'''&lt;br /&gt;
&lt;br /&gt;
Change the line:&lt;br /&gt;
&lt;br /&gt;
 $hidden_key_num      = &amp;quot;0&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
to:&lt;br /&gt;
&lt;br /&gt;
 $hidden_key_num      = &amp;quot;236785&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
and:&lt;br /&gt;
&lt;br /&gt;
 $DB_password = &amp;quot;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
to:&lt;br /&gt;
&lt;br /&gt;
 $DB_password = &amp;quot;newpassword&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
The database password is the one that you provided earlier when you installed MySQL.&lt;br /&gt;
&lt;br /&gt;
Next, create the database tables by simply opening the web browser and going to the IP address of your host ''http://IPaddress'' or ''http://localhost''. The browser displays a list of tables that are created. The login screen appears in a few seconds, and you can now log in with the username ''admin'' and the password ''change''([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-14|Figure 5-14]]). Make sure that you change your password once you log in.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-14&amp;quot;&lt;br /&gt;
'''Figure 5-14. SnortCenter login'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt529-web.png|SnortCenter login]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install the SnortCenter Sensor Agent. This can be installed on the same system as the SnortCenter Management Console, or on other distributed Snort sensors throughout the network. For this example, we are installing it on the same system for simplicity. This install assumes that Snort is already installed.&lt;br /&gt;
&lt;br /&gt;
To provide encryption of the traffic from the SnortCenter Management Console to the SnortCenter Sensor Agent, you must first install Perl and OpenSSL from source. Installing from the RPMs causes problems such as dependency issues and errors. Make sure that both are compiled with the same compiler or you will receive an error when you later install ttNet_SSLeay/tt. The current version of Perl at the time of this writing is 5.8.5. (Perl 5.8.6 is due to be released soon, but has not yet been tested with SnortCenter.) Install Perl with the following commands:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf stable.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd perl-5.8.5/'''&lt;br /&gt;
 [root@localhost perl-5.8.5]# '''rm -f config.sh Policy.sh'''&lt;br /&gt;
 [root@localhost perl-5.8.5]# '''sh Configure -de'''&lt;br /&gt;
 [root@localhost perl-5.8.5]# '''make'''&lt;br /&gt;
 [root@localhost perl-5.8.5]# '''make test'''&lt;br /&gt;
 [root@localhost perl-5.8.5]# '''make install'''&lt;br /&gt;
&lt;br /&gt;
The current version of OpenSSL at the time of this writing is 0.9.7d. Install it with the following commands:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf openssl-0.9.7d.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd openssl-0.9.7d'''&lt;br /&gt;
 [root@localhost openssl-0.9.7d]# '''./Configure'''&lt;br /&gt;
 [root@localhost openssl-0.9.7d]# '''make'''&lt;br /&gt;
 [root@localhost openssl-0.9.7d]# '''make install'''&lt;br /&gt;
&lt;br /&gt;
Next, install the ttNet_SSLeay/tt Perl module. The current version at the time of this writing is 1.21. Install it with the following commands:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf Net_SSLeay.pm-1.21.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd Net_SSLeay.pm-1.21'''&lt;br /&gt;
 [root@localhost Net_SSLeay.pm-1.21]# '''perl Makefile.PL'''&lt;br /&gt;
 [root@localhost Net_SSLeay.pm-1.21]# '''make'''&lt;br /&gt;
 [root@localhost Net_SSLeay.pm-1.21]# '''make install'''&lt;br /&gt;
&lt;br /&gt;
Next, test the SSL install by using the following command:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost Net_SSLeay.pm-1.21]# '''perl -e 'use Net::SSLeay''''&lt;br /&gt;
&lt;br /&gt;
The SSL support that the Sensor Agent needs is properly installed if the command doesn't output an error message.&lt;br /&gt;
&lt;br /&gt;
Next, create the OpenSSL certificate for communications by using the following commands and entering the appropriate information:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost Net_SSLeay.pm-1.21]# '''cd ..'''&lt;br /&gt;
 [root@localhost root]# '''openssl req -new -x509 -days 3650 -nodes -out '''&lt;br /&gt;
                '''sensor.pem -keyout sensor.pem'''&lt;br /&gt;
 Generating a 1024 bit RSA private key&lt;br /&gt;
 ......++++++&lt;br /&gt;
 ............................................++++++&lt;br /&gt;
 writing new private key to 'sensor.pem'&lt;br /&gt;
 -----&lt;br /&gt;
 You are about to be asked to enter information that will be &lt;br /&gt;
 Incorporated into your certificate request.&lt;br /&gt;
 What you are about to enter is what is called a Distinguished Name or &lt;br /&gt;
 a DN.&lt;br /&gt;
 There are quite a few fields but you can leave some blank&lt;br /&gt;
 For some fields there will be a default value,&lt;br /&gt;
 If you enter '.', the field will be left blank.&lt;br /&gt;
 -----&lt;br /&gt;
 Country Name (2 letter code) [GB]:''US''&lt;br /&gt;
 State or Province Name (full name) [Berkshire]:''DC''&lt;br /&gt;
 Locality Name (eg, city) [Newbury]:''DC''&lt;br /&gt;
 Organization Name (eg, company) [My Company Ltd]:&lt;br /&gt;
 Organizational Unit Name (eg, section) [  ]:&lt;br /&gt;
 Common Name (eg, your name or your server's hostname) [  ]:''Buddha''&lt;br /&gt;
 Email Address [  ]:&lt;br /&gt;
&lt;br /&gt;
Next, install the Sensor Agent with the following commands:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf snortcenter-agent-v1.0-RC1.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd sensor'''&lt;br /&gt;
&lt;br /&gt;
There is a bug in the ''setup.sh'' file that needs to be corrected before setup is run. Edit the ''setup.sh'' file and remove the tt$/tt from the following line:&lt;br /&gt;
&lt;br /&gt;
 $perl -e 'use Net::SSLeay' /dev/null 2/dev/null&lt;br /&gt;
&lt;br /&gt;
Then run the ''setup.sh'' configuration file and answer the questions (you may accept the defaults for most of them):&lt;br /&gt;
&lt;br /&gt;
 [root@localhost sensor]# '''./setup.sh'''&lt;br /&gt;
&lt;br /&gt;
Now both the SnortCenter Management Console and the SnortCenter Sensor Agent are installed. You will need to open the management console with a web browser by going to ''http://IPAddress'' or ''http://localhost'' ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-14|Figure 5-14]]). Next, log in and add your sensor to the management console.&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
SnortCenter provides a web-based method to manage distributed Snort sensors. It operates in a client-server mode where the management console is used to build configuration files and then send them to the remote sensors. There are several prerequisites that need to be installed and configured before installing SnortCenter. Please make sure that you have downloaded all of the following programs before you begin: MySQL, Apache, libxml2, PHP, Curl, ADODB, Perl, OpenSSL, SnortCenter Management Console, SnortCenter Sensor Agent, and ttNet_SSLeay/tt. The solution example provides the necessary installation setups and configurations for Red Hat 9.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Installing and Configuring MySQL|Recipe 2.11]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Configuring MySQL for Snort|Recipe 2.12]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Installation and Optimization#Installing Snort on Windows|Recipe 1.4]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Installation and Optimization#Installing Snort Binaries on Linux|Recipe 1.2]]&lt;br /&gt;
&lt;br /&gt;
== Installing and Configuring Snortsnarf ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You want to use Snortsnarf to analyze your Snort alert output.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
Install Snortsnarf by using the following command:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf SnortSnarf-021111.1.tar.gz'''&lt;br /&gt;
&lt;br /&gt;
Install the ttTime::ParseDate/tt Perl module by downloading it and compiling it manually, or by using the following command:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''cd SnortSnarf-021111.1'''&lt;br /&gt;
 [root@localhost SnortSnarf-021111.1]# '''perl -MCPAN -e 'install '''&lt;br /&gt;
                '''Time::ParseDate''''&lt;br /&gt;
&lt;br /&gt;
Next, make a directory in which to store the module and copy the files:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost SnortSnarf-021111.1]# '''mkdir ./include/SnortSnarf/Time'''&lt;br /&gt;
 [root@localhost SnortSnarf-021111.1]# '''cp /usr/lib/perl5/site_perl/'''&lt;br /&gt;
                '''5.8.0/Time/*.* ./include/SnortSnarf/Time'''&lt;br /&gt;
&lt;br /&gt;
Next, you can run Snortsnarf to analyze your alerts file by using the following:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost SnortSnarf-021111.1]# '''./snortsnarf.pl /var/log/snort'''&lt;br /&gt;
                '''/alert'''&lt;br /&gt;
&lt;br /&gt;
The output will be created in the ''snfout.alert'' directory in your current directory. Use a web browser to open the ''index.html'' file located within that directory ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-15|Figure 5-15]]). You may use the tt-d/tt command-line option to specify an output directory, such as your ''/www'' directory.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-15&amp;quot;&lt;br /&gt;
'''Figure 5-15. Snortsnarf start page'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt542-web.png|Snortsnarf start page]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
You can also run Snortsnarf to analyze alerts in a MySQL Snort database by using the following:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost SnortSnarf-021111.1]# '''./snortsnarf.pl snort@localhost'''&lt;br /&gt;
&lt;br /&gt;
The database input is specified in the form ttuser:passwd@dbname@host:port/tt. The tt@dbname/tt parameter is optional and defaults to a database name of ttsnort/tt. The tt:port/tt parameter is also optional and defaults to 3306. If you do not supply a password, you are prompted to enter it.&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
Snortsnarf is a Perl script that takes one or more Snort input sources and converts the information into web pages. You can use the Snort alert files or a MySQL Snort database as input sources. The following command will show usage and help information:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''./snortsnarf.pl -usage'''&lt;br /&gt;
&lt;br /&gt;
To use Snortsnarf to read alerts from a MySQL database, you will need to download and compile the DBI and MySQL Perl modules:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost SnortSnarf]# '''perl -MCPAN -e 'install DBI''''&lt;br /&gt;
&lt;br /&gt;
You must stop the MySQL database and restart it without grant tables. This starts the database so that the automatic script can log in as root without a password. Once you have completed the install for the MySQL Perl module, you must stop and restart the MySQL database.&lt;br /&gt;
&lt;br /&gt;
 [root@localhost SnortSnarf-021111.1]# '''/etc/init.d/mysql stop'''&lt;br /&gt;
 [root@localhost SnortSnarf-021111.1]# '''/usr/local/mysql/bin/mysqld_safe'''&lt;br /&gt;
                ''' --skip-grant-tables '''&lt;br /&gt;
 [root@localhost SnortSnarf-021111.1]# '''perl -MCPAN -e 'install Mysql''''&lt;br /&gt;
 [root@localhost SnortSnarf-021111.1]# '''/etc/init.d/mysql stop'''&lt;br /&gt;
 [root@localhost SnortSnarf-021111.1]# '''/etc/init.d/mysql start'''&lt;br /&gt;
&lt;br /&gt;
You can download the latest ttSnortDBInput/tt module from . Save the ''SnortDBInput-version.pm'' file to the directory ''/root/SnortSnarf-021111.1/include/SnortSnarf''. Next, use the following commands to replace the old ttSnortDBInput/tt module:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost SnortSnarf]# '''rm SnortDBInput.pm'''&lt;br /&gt;
 rm: remove regular file `SnortDBInput.pm'? '''y'''&lt;br /&gt;
 [root@localhost SnortSnarf]# '''mv SnortDBInput-0.3.pm SnortDBInput.pm'''&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Snortsnarf Automatically ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You want your Snortsnarf web pages to update automatically.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
Move the Snortsnarf files to the appropriate location within your PATH as follows:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''cp /root/SnortSnarf-021111.1/include/* /usr/lib/perl5/site_perl/5.8.0'''&lt;br /&gt;
 [root@localhost root]# '''cp /root/SnortSnarf-021111.1/include/'''&lt;br /&gt;
                '''SnortSnarf/* /usr/lib/perl5/site_perl/5.8.0'''&lt;br /&gt;
 [root@localhost root]# '''cp /root/SnortSnarf-021111.1/snortsnarf.pl /etc'''&lt;br /&gt;
&lt;br /&gt;
Edit the ''crontab'' by using the following command:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''crontab -e'''&lt;br /&gt;
&lt;br /&gt;
Add the following entry to run Snortsnarf every 10 minutes and refresh the browser every 5 minutes:&lt;br /&gt;
&lt;br /&gt;
 */10 * * * * /etc/snortsnarf.pl -d /var/log/www/snortsnarf &lt;br /&gt;
 -refresh=300 /var/log/snort/alert&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
It can be a tedious task to run the Snortsnarf command manually each time you want to look at your data. Creating the Snortsnarf cron job entry is an easy way to have Snortsnarf executed on a regular basis and have the browser refresh automatically, too. This way, you could have the browser open in your network operations center and be quickly alerted to new events.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Administrative Tools#Installing and Configuring Snortsnarf|Recipe 5.4]]&lt;br /&gt;
&lt;br /&gt;
Cron manpage&lt;br /&gt;
&lt;br /&gt;
== Installing and Configuring ACID ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You want to use ACID to analyze your Snort output.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
Follow the recipes for Installing and Configuring MySQL ([[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Installing and Configuring MySQL|Recipe 2.11]]), Installing Snort Binaries on Linux ([[Snort Cookbook/Installation and Optimization#Installing Snort Binaries on Linux|Recipe 1.2]]), and Configuring MySQL for Snort ([[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Configuring MySQL for Snort|Recipe 2.12]]). Make sure when you install Snort that you use the ttconfigure --with-mysql=/usr/local/mysql/tt option.&lt;br /&gt;
&lt;br /&gt;
First, install Apache. At the time of this writing, the current version is 2.0.50. Use the following commands to install Apache:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf httpd-2.0.50.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd httpd-2.0.50'''&lt;br /&gt;
 [root@localhost httpd-2.0.50]# '''./configure --prefix=/www --enable-so'''&lt;br /&gt;
 [root@localhost httpd-2.0.50]# '''make'''&lt;br /&gt;
 [root@localhost httpd-2.0.50]# '''make install'''&lt;br /&gt;
 [root@localhost httpd-2.0.50]# '''/www/bin/apachectl start'''&lt;br /&gt;
&lt;br /&gt;
Next, check the system to make sure the web server is working by opening a web browser and entering your IP address or &amp;quot;localhost.&amp;quot; You should see the default Apache web page.&lt;br /&gt;
&lt;br /&gt;
Next, install PHP. You must install Version 4.3.8 because the current version, 5.0.0, does not work with ACID. Use the following commands to install PHP:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf php-4.3.8.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd php-4.3.8'''&lt;br /&gt;
 [root@localhost php-4.3.8]# '''./configure --prefix=/www/php --with-apxs2='''&lt;br /&gt;
 '''/www/bin/apxs --with-config-filepath=/www/php --enable-sockets '''&lt;br /&gt;
                '''--with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local --with-gd'''&lt;br /&gt;
 [root@localhost php-4.3.8]# '''make'''&lt;br /&gt;
 [root@localhost php-4.3.8]# '''make install'''&lt;br /&gt;
 [root@localhost php-4.3.8]# '''cp php.ini-dist /www/php/php.ini'''&lt;br /&gt;
&lt;br /&gt;
Make the following changes to the ''/www/conf/httpd.conf'' file:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost php-4.3.8]# '''cd /www/conf'''&lt;br /&gt;
 [root@localhost conf]# '''vi httpd.conf'''&lt;br /&gt;
&lt;br /&gt;
Change the line:&lt;br /&gt;
&lt;br /&gt;
 DirectoryIndex index.html index.html.var&lt;br /&gt;
&lt;br /&gt;
to:&lt;br /&gt;
&lt;br /&gt;
 DirectoryIndex index.php index.html index.html.var&lt;br /&gt;
&lt;br /&gt;
Also, add the following line under the AddType section:&lt;br /&gt;
&lt;br /&gt;
 AddType application/x-httpd-php .php&lt;br /&gt;
&lt;br /&gt;
Next, make the following changes to create links for startup scripts so that the web server starts when you boot up in run levels 3 and 5 (run level 3 is full multiuser mode, and run level 5 is the X Window System):&lt;br /&gt;
&lt;br /&gt;
 [root@localhost conf]# '''cd /www/bin'''&lt;br /&gt;
 [root@localhost bin]# '''cp apachectl /etc/init.d/httpd'''&lt;br /&gt;
 [root@localhost bin]# '''cd /etc/rc3.d'''&lt;br /&gt;
 [root@localhost rc3.d]# '''ln -s ../init.d/httpd S85httpd'''&lt;br /&gt;
 [root@localhost rc3.d]# '''ln -s ../init.d/httpd K85httpd'''&lt;br /&gt;
 [root@localhost rc3.d]# '''cd /etc/rc5.d'''&lt;br /&gt;
 [root@localhost rc5.d]# '''ln -s ../init.d/httpd S85httpd'''&lt;br /&gt;
 [root@localhost rc5.d]# '''ln -s ../init.d/httpd K85httpd'''&lt;br /&gt;
&lt;br /&gt;
Next, test the configuration with the following commands:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost rc5.d]# '''cd /www/htdocs'''&lt;br /&gt;
 [root@localhost htdocs]# '''echo &amp;quot;?php phpinfo(); ?&amp;quot;  test.php'''&lt;br /&gt;
 [root@localhost htdocs]# '''/etc/init.d/httpd stop'''&lt;br /&gt;
 [root@localhost htdocs]# '''/etc/init.d/httpd start'''&lt;br /&gt;
&lt;br /&gt;
Open the web browser again and enter ''http://IPaddress/test.php'' or ''http://localhost/test.php''. You should see a PHP table output of system information.&lt;br /&gt;
&lt;br /&gt;
Next, install adodb. At the time of this writing, the latest version is 4.5.1:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf adodb451.tgz'''&lt;br /&gt;
 [root@localhost root]# '''cp -R ./adodb/ /www/htdocs'''&lt;br /&gt;
&lt;br /&gt;
Next, install JPGraph. The current version at the time of this writing is 1.16. Use the following commands to install JPGraph:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''cp jpgraph-1.16.tar.gz /www/htdocs'''&lt;br /&gt;
 [root@localhost root]# '''cd /www/htdocs'''&lt;br /&gt;
 [root@localhost htdocs]# '''tar zxvf jpgraph-1.16.tar.gz'''&lt;br /&gt;
 [root@localhost htdocs]# '''rm -rf jpgraph-1.16.tar.gz'''&lt;br /&gt;
&lt;br /&gt;
Now you are ready to install ACID. The current version at the time of this writing is 0.9.6b23. Use the following commands to install ACID:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost htdocs]# '''cd /root'''&lt;br /&gt;
 [root@localhost root]# '''cp acid-0.9.6b23.tar.gz /www/htdocs'''&lt;br /&gt;
 [root@localhost root]# '''cd /www/htdocs'''&lt;br /&gt;
 [root@localhost htdocs]# '''tar zxvf acid-0.9.6b23.tar.gz'''&lt;br /&gt;
 [root@localhost htdocs]# '''rm -rf acid-0.9.6b23.tar.gz'''&lt;br /&gt;
 [root@localhost htdocs]# '''cd acid'''&lt;br /&gt;
 [root@localhost acid]# '''vi acid_conf.php'''&lt;br /&gt;
&lt;br /&gt;
Next, you must make a few configuration changes. Make sure the ''/www/htdocs/acid/acid_conf.php'' file contains the following information:&lt;br /&gt;
&lt;br /&gt;
 $DBlib_path = &amp;quot;/www/htdocs/adodb&amp;quot;;&lt;br /&gt;
 /* Alert DB connection parameters&lt;br /&gt;
  *   - $alert_dbname   : MySQL database name of Snort alert DB&lt;br /&gt;
  *   - $alert_host     : host on which the DB is stored&lt;br /&gt;
  *   - $alert_port     : port on which to access the DB&lt;br /&gt;
  *   - $alert_user     : login to the database with this user&lt;br /&gt;
  *   - $alert_password : password of the DB user&lt;br /&gt;
  *&lt;br /&gt;
  *  This information can be gleaned from the Snort database&lt;br /&gt;
  *  output plugin configuration.&lt;br /&gt;
  */&lt;br /&gt;
 $alert_dbname   = &amp;quot;snort&amp;quot;;&lt;br /&gt;
 $alert_host     = &amp;quot;localhost&amp;quot;;&lt;br /&gt;
 $alert_port     = &amp;quot;&amp;quot;;&lt;br /&gt;
 $alert_user     = &amp;quot;root&amp;quot;;&lt;br /&gt;
 $alert_password = &amp;quot;newpassword&amp;quot;;&lt;br /&gt;
 /* Archive DB connection parameters */&lt;br /&gt;
 $archive_dbname   = &amp;quot;snort&amp;quot;;&lt;br /&gt;
 $archive_host     = &amp;quot;localhost&amp;quot;;&lt;br /&gt;
 $archive_port     = &amp;quot;&amp;quot;;&lt;br /&gt;
 $archive_user     = &amp;quot;root&amp;quot;;&lt;br /&gt;
 $archive_password = &amp;quot;newpassword&amp;quot;;&lt;br /&gt;
 $ChartLib_path = &amp;quot;/www/htdocs/jpgraph-1.16/src&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
To continue with the configuration, open a web browser to ''http://localhost/acid/acid_main.php'' ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-16|Figure 5-16]]). Click on the Setup page link to continue ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-17|Figure 5-17]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-16&amp;quot;&lt;br /&gt;
'''Figure 5-16. ACID initial setup page'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt563-web.png|ACID initial setup page]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-17&amp;quot;&lt;br /&gt;
'''Figure 5-17. ACID database setup'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt564-web.png|ACID database setup]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
Next, click the button that says Create ACID AG. You now see that four tables were successfully created ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-18|Figure 5-18]]). Now when you go back to the main ACID page, it displays the Snort sensor statistics ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-19|Figure 5-19]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-18&amp;quot;&lt;br /&gt;
'''Figure 5-18. ACID database setup complete'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt565-web.png|ACID database setup complete]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-19&amp;quot;&lt;br /&gt;
'''Figure 5-19. ACID main page'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt566-web.png|ACID main page]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
The Analysis Console for Intrusion Databases (ACID) is a great tool to use for viewing, analyzing, and graphing your Snort logs. It is a PHP-based analysis engine that searches and processes your IDS database logs. Some of its features include a search engine, packet viewer, alert management, and graphing and statistics generation.&lt;br /&gt;
&lt;br /&gt;
There are several prerequisites to installing ACID, including MySQL, Apache, PHP, ADODB, JPGraph, and Snort. The example provided installs ACID and its prerequisites on a default installation of Red Hat 9. When using other versions of Unix or Linux, you must download and install the appropriate prerequisites for your platform.&lt;br /&gt;
&lt;br /&gt;
Keeping up with alerts and logs is one of the hardest parts of managing an IDS. Using a tool like ACID makes the IDS administrator's job a lot easier. Its web frontend, ease of use, and features make it an invaluable tool to have for IDS data analysis.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Installing and Configuring MySQL|Recipe 2.11]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Configuring MySQL for Snort|Recipe 2.12]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Installation and Optimization#Installing Snort on Windows|Recipe 1.4]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Installation and Optimization#Installing Snort Binaries on Linux|Recipe 1.2]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Administrative Tools#Installing and Configuring SnortCenter|Recipe 5.3]]&lt;br /&gt;
&lt;br /&gt;
== Securing ACID ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You want to protect your ACID web page from unauthorized users.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
Use the tthtpasswd/tt command to create a password for the user ''acid''. Make sure you use a strong password:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''mkdir /www/passwords'''&lt;br /&gt;
 [root@localhost root]# '''/www/bin/htpasswd -c '''&lt;br /&gt;
                '''/www/passwords/passwords acid'''&lt;br /&gt;
 New password:&lt;br /&gt;
 Re-Type new password:&lt;br /&gt;
 Adding password for user acid&lt;br /&gt;
&lt;br /&gt;
Edit the ''/www/conf/httpd.conf'' file to include the following:&lt;br /&gt;
&lt;br /&gt;
 Directory &amp;quot;/www/htdocs/acid&amp;quot;&lt;br /&gt;
 AuthType Basic&lt;br /&gt;
 AuthName &amp;quot;SnortIDS&amp;quot;&lt;br /&gt;
 AuthUserFile /www/passwords/passwords&lt;br /&gt;
 Require user acid&lt;br /&gt;
 /Directory&lt;br /&gt;
&lt;br /&gt;
Now restart the web server with the following command:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''/etc/init.d/httpd restart'''&lt;br /&gt;
&lt;br /&gt;
The next time you access your ACID page, you will be prompted for the username and password.&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
Securing your ACID database from unauthorized access is a great idea. Besides intruders having the ability to access the system and potentially cover their tracks, it keeps other inquisitive users from tampering with the database. The usernames and passwords are stored in the ''/www/passwords/passwords'' file. Although the passwords are encrypted, it is always a good idea to harden your system and protect it behind a perimeter firewall. If you are not the only person administering this system, it is a good practice to create separate usernames and passwords for each administrator to maintain accountability. Another consideration for securing ACID is to use SSL for encrypting the communications, especially the password authentication.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Administrative Tools#Installing and Configuring ACID|Recipe 5.6]]&lt;br /&gt;
&lt;br /&gt;
== Installing and Configuring Swatch ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You would like to use Swatch to monitor your logfiles.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
Install Swatch by using the following standard method of installing Perl modules:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf swatch-3.1.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd swatch-3.1'''&lt;br /&gt;
 [root@localhost swatch-3.1]# '''perl Makefile.PL'''&lt;br /&gt;
 [root@localhost swatch-3.1]# '''make'''&lt;br /&gt;
 [root@localhost swatch-3.1]# '''make test'''&lt;br /&gt;
 [root@localhost swatch-3.1]# '''make install'''&lt;br /&gt;
 [root@localhost swatch-3.1]# '''make realclean'''&lt;br /&gt;
&lt;br /&gt;
Next, you can test that it is working by running both Snort and Swatch:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost snort-2.1.3]# '''snort -l /var/log/snort -c '''&lt;br /&gt;
                '''./etc/snort.conf'''&lt;br /&gt;
 [root@localhost root]# '''swatch -t /var/log/snort/alert'''nowiki&lt;br /&gt;
swatch: cannot read /root/.swatchrc&lt;br /&gt;
swatch: using default configuration of:&lt;br /&gt;
 &lt;br /&gt;
        watchfor = /.*/&lt;br /&gt;
                echo&lt;br /&gt;
 &lt;br /&gt;
*** swatch version 3.1 (pid:20771) started at Fri Jul  2 07:20:46 &lt;br /&gt;
EDT 2004&lt;br /&gt;
 &lt;br /&gt;
[**] [1:469:3] ICMP PING NMAP [**]&lt;br /&gt;
[Classification: Attempted Information Leak] [Priority: 2]&lt;br /&gt;
07/02-07:21:01.673346 192.168.206.129 - 192.168.100.5&lt;br /&gt;
ICMP TTL:37 TOS:0x0 ID:42715 IpLen:20 DgmLen:28&lt;br /&gt;
Type:8  Code:0  ID:56574   Seq:29086  ECHO&lt;br /&gt;
[Xref = http://www.whitehats.com/info/IDS162]/nowiki&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
Swatch is known as the Simple Watcher of logfiles. It is a Perl program that monitors Snort alerts and creates automatic responses. Swatch can generate a system bell, print output to the screen, send an email, and run a script to perform other actions. These actions can be configured in the ''/.swatchrc'' file, such as the following:&lt;br /&gt;
&lt;br /&gt;
 watchfor /something_to_watch_for/&lt;br /&gt;
 bell&lt;br /&gt;
 echo normal&lt;br /&gt;
 mail addresses=yourmail@youraddress.com,subject=Snort Alert!&lt;br /&gt;
 exec some_script&lt;br /&gt;
&lt;br /&gt;
The ''/.swatchrc'' file can have multiple instances of the ttwatchfor/tt statement to watch for a variety of alerts and then initiate the appropriate actions.&lt;br /&gt;
&lt;br /&gt;
Swatch has dependencies on four other Perl modules: ttDate::Calc/tt, ttDate::Parse/tt, ttFile::Tail/tt, and ttTime::HiRes/tt. On RedHat 9, we had to install the following three dependencies:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf Date-Calc-5.3.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd Date-Calc-5.3'''&lt;br /&gt;
 [root@localhost Date-Calc-5.3]# '''perl Makefile.PL'''&lt;br /&gt;
 [root@localhost Date-Calc-5.3]# '''make'''&lt;br /&gt;
 [root@localhost Date-Calc-5.3]# '''make test'''&lt;br /&gt;
 [root@localhost Date-Calc-5.3]# '''make install'''&lt;br /&gt;
 [root@localhost Date-Calc-5.3]# '''make realclean'''&lt;br /&gt;
 [root@localhost root]# '''tar zxvf Time-HiRes-1.59.tar.gz'''&lt;br /&gt;
 [root@localhost Time-HiRes-1.59]# '''LC_ALL=C; export LC_ALL'''&lt;br /&gt;
 [root@localhost Time-HiRes-1.59]# '''perl Makefile.PL'''&lt;br /&gt;
 [root@localhost Time-HiRes-1.59]# '''make'''&lt;br /&gt;
 [root@localhost Time-HiRes-1.59]# '''make test'''&lt;br /&gt;
 [root@localhost Time-HiRes-1.59]# '''make install'''&lt;br /&gt;
 [root@localhost Time-HiRes-1.59]# '''make realclean'''&lt;br /&gt;
 [root@localhost root]# '''tar zxvf TimeDate-1.16.tar.gz'''&lt;br /&gt;
 [root@localhost root]# '''cd TimeDate-1.16'''&lt;br /&gt;
 [root@localhost TimeDate-1.16]# '''perl Makefile.PL'''&lt;br /&gt;
 [root@localhost TimeDate-1.16]# '''make'''&lt;br /&gt;
 [root@localhost TimeDate-1.16]# '''make test'''&lt;br /&gt;
 [root@localhost TimeDate-1.16]# '''make install'''&lt;br /&gt;
 [root@localhost TimeDate-1.16]# '''make realclean'''&lt;br /&gt;
&lt;br /&gt;
If you also need ttFile::Tail/tt, you can install it the same way by downloading and installing the  file. You can download Perl modules from  and various other CPAN mirror sites.&lt;br /&gt;
&lt;br /&gt;
To test the Swatch installation, first run Snort in NIDS mode to make sure it is generating alert messages. Then start Swatch with the target file of ''/var/log/snort/alert'',or wherever your alerts that you would like to monitor are being logged. Next, run some event traffic such as an Nmap scan, and you should see the alerts showing on the screen. Notice that the example is just using the default configuration; you can configure the ''/root/.swatchrc'' file to monitor for specific keywords and generate various types of actions.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing and Configuring Barnyard ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You want to use Barnyard to process your Snort alerts and logs.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
To install Barnyard, use the following commands:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost root]# '''tar zxvf barnyard-0.2.0.tar.gz'''&lt;br /&gt;
 [root@localhost barnyard-0.2.0]# '''cd barnyard-0.2.0'''&lt;br /&gt;
 [root@localhost barnyard-0.2.0]# '''./configure'''&lt;br /&gt;
 [root@localhost barnyard-0.2.0]# '''make'''&lt;br /&gt;
 [root@localhost barnyard-0.2.0]# '''make install'''&lt;br /&gt;
&lt;br /&gt;
Also, by default, Barnyard does not install with database support. If you plan on using the ACID database output plug-in, configure Barnyard with database support using the following MySQL option:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost barnyard-0.2.0]# '''./configure --enable-mysql'''&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
Barnyard is used to take the log processing load off of the Snort engine. Barnyard processing is controlled by input processors and output plug-ins. The input processors read information in from a specified format and the output plug-ins write that information in a variety of ways. Barnyard allows Snort to efficiently write data to disk so it does not miss any network traffic. Barnyard then performs the task of parsing binary data into various formats. Once Barnyard is installed, you can see usage information by just typing tt'''barnyard'''/tt:&lt;br /&gt;
&lt;br /&gt;
 [root@localhost barnyard-0.2.0]# '''barnyard'''&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Logging Only Alerts|Recipe 2.2]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Logging to a CSV File|Recipe 2.3]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Logging to a File Quickly|Recipe 2.1]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Logging to Multiple Locations|Recipe 2.5]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Logging in Binary|Recipe 2.6]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Optimizing Logging|Recipe 2.17]]&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Logging, Alerts, and Output Plug-ins#Reading Unified Logged Data|Recipe 2.18]]&lt;br /&gt;
&lt;br /&gt;
== Administering Snort with IDS Policy Manager ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You need to administer multiple Snort sensors.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
Install the IDS Policy Manager from Activeworx. This allows you to administer multiple Snort sensors.&lt;br /&gt;
&lt;br /&gt;
ol&lt;br /&gt;
lidivDownload the compressed zip file from the Activeworx web site (). Decompress it and run the installation program ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-20|Figure 5-20]]). Click Next to continue.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-20&amp;quot;&lt;br /&gt;
'''Figure 5-20. IDS Policy Manager welcome screen'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt577-web.png|IDS Policy Manager welcome screen]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivAccept the default installation directory or choose one of your own liking ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-21|Figure 5-21]]). Click Next.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-21&amp;quot;&lt;br /&gt;
'''Figure 5-21. Destination Folder'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt578-web.png|Destination Folder]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivClick Next to begin the installation ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-22|Figure 5-22]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-22&amp;quot;&lt;br /&gt;
'''Figure 5-22. Ready to Install'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt579-web.png|Ready to Install]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivWait for the installation to complete ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-23|Figure 5-23]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-23&amp;quot;&lt;br /&gt;
'''Figure 5-23. Installation progress'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt580-web.png|Installation progress]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivClick Finish to complete the installation ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-24|Figure 5-24]]).&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/ol&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-24&amp;quot;&lt;br /&gt;
'''Figure 5-24. IDS Policy Manager installation successful'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt581-web.png|IDS Policy Manager installation successful]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
The IDS Policy Manager is designed to allow you to administer multiple Snort sensors. When you first start the application, it asks you if you want it to check for updates automatically ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-25|Figure 5-25]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-25&amp;quot;&lt;br /&gt;
'''Figure 5-25. Updating the IDS Policy Manager'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt582-web.png|Updating the IDS Policy Manager]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
After you select Yes or No to the autocheck for updates, you see the main screen ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-26|Figure 5-26]]). The first time you run it, no sensors are set up in the Sensor Manager tab. There are also two other tabs: Policy Manager and Logging.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-26&amp;quot;&lt;br /&gt;
'''Figure 5-26. IDS Policy Manager main screen'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt583-web.png|IDS Policy Manager main screen]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
The first step is to add a Sensor. You do this by selecting Add from the Sensor menu ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-27|Figure 5-27]]). This starts a dialog for you to configure the sensor details ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-28|Figure 5-28]]). Enter the required details. The Sensor Name is for internal reference only, so call it something that makes sense to you. For the time being, set the Policy to Official. This is the only defined policy on the system at this point, and you can change it later, once you have defined more. Select the Restart after Upload checkbox if you want the sensor to be restarted after policy changes have been uploaded. Select the application that you wish to use to connect to the sensor to restart it, and enter the path to the restart script that you want to run in the Script box. Click OK to return to the main screen ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-29|Figure 5-29]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-27&amp;quot;&lt;br /&gt;
'''Figure 5-27. Adding a sensor'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt584-web.png|Adding a sensor]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-28&amp;quot;&lt;br /&gt;
'''Figure 5-28. Sensor details'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt585-web.png|Sensor details]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-29&amp;quot;&lt;br /&gt;
'''Figure 5-29. IDS Policy Manager main screen with new sensor'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt586-web.png|IDS Policy Manager main screen with new sensor]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
Once you have created your sensor, you can go on to create or edit the policy assigned to it. Click on the Policy Manager tab ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-30|Figure 5-30]]). Double-click on the name of the policy that you wish to edit, or select Add from the Policy menu. In this case, we are going to edit the Official policy. On the first running of the Policy Editor, you will be prompted to determine if you want to check for new rules ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-31|Figure 5-31]]). The IDS Policy Manager will automatically check for, and download, any new rules that are found and add them to the list ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-32|Figure 5-32]]). Within the Policy Editor, you can select which rules you wish to be part of your policy. This policy can then be propagated out to all sensors that are known about by the IDS Policy Manager. When you have chosen all that you require, select Save and Exit from the File menu.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-30&amp;quot;&lt;br /&gt;
'''Figure 5-30. Policy Manager tab'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt587-web.png|Policy Manager tab]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-31&amp;quot;&lt;br /&gt;
'''Figure 5-31. Check for new rules'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt588-web.png|Check for new rules]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-32&amp;quot;&lt;br /&gt;
'''Figure 5-32. Policy Editor'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt589-web.png|Policy Editor]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
The Logging tab keeps track of all the actions that are carried out within the IDS Policy manager ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-33|Figure 5-33]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-33&amp;quot;&lt;br /&gt;
'''Figure 5-33. Logging tab'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt590-web.png|Logging tab]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
To update the policy across all the sensors within your network, first make the changes to the policy as required, save the changes, and then select all your sensors from the Sensor Manager by clicking the checkboxes next to their names. Then select the Sensor menu and select the Upload Policy to Sensor item. If you have selected the checkbox in the sensor configuration to restart the sensor, IDS Policy Manager will restart the sensor automatically; otherwise, select Restart Selected Sensors from the Sensor menu to do so.&lt;br /&gt;
&lt;br /&gt;
Further information on the running of IDS Policy Manager can be found in the Help menu and from the Activeworx web site.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Integrating Snort with Webmin ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You have already set up a Unix management system using Webmin. You would like to integrate Snort with this management system.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
ol&lt;br /&gt;
lidivDownload the Snort Webmin module from MSB Networks (available at: ). This allows you to configure, monitor, and maintain Snort from within Webmin.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivOnce you have downloaded the module, insert it into Webmin through the web interface by selecting the Webmin Configuration icon from the main screen ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-34|Figure 5-34]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-34&amp;quot;&lt;br /&gt;
'''Figure 5-34. Webmin main screen'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt591-web.png|Webmin main screen]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivSelect the Webmin Modules icon ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-35|Figure 5-35]]). This will show the information in the Webmin Modules ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-36|Figure 5-36]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-35&amp;quot;&lt;br /&gt;
'''Figure 5-35. Webmin Configuration'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt592-web.png|Webmin Configuration]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-36&amp;quot;&lt;br /&gt;
'''Figure 5-36. Webmin Modules'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt593-web.png|Webmin Modules]]&lt;br /&gt;
/div&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivIn the Install Module box, select the From uploaded file radio button, and click the Browse button to navigate to the file that you downloaded.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivClick the Install Module button. You will get a confirmation screen ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-37|Figure 5-37]]).&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/ol&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-37&amp;quot;&lt;br /&gt;
'''Figure 5-37. Install Module'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt594-web.png|Install Module]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
Webmin is a web-based system-administration interface for Unix. It allows you to manage your Unix system and software—in this case, Snort. Once you have installed the Snort Webmin Module, you need to configure the various settings by clicking on the Snort IDS Admin link in the Install Module window, or by navigating to the plug-in through the Webmin interface. On first use, you are presented with a screen prompting for the details of your Snort installation ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-38|Figure 5-38]]). Note that Webmin can handle only the control of one Snort daemon running on the machine.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-38&amp;quot;&lt;br /&gt;
'''Figure 5-38. Initial configuration'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt595-web.png|Initial configuration]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
You need to set the full path to your Snort executable, the Snort configuration file, the rules directory, and the Snort PID file. Optionally, you can set the command to start Snort and set the URL to your ACID installation. Once you have filled in the information, click Save.&lt;br /&gt;
&lt;br /&gt;
There are five main sections to the Webmin interface to Snort: Rulesets, Network Settings, PreProcessors, Alerts  Logging, and Edit Config File ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-39|Figure 5-39]]). Start in the Rulesets screen to select which rules you wish to enable. Note that changes will take effect only once you have restarted Snort. To facilitate this, there is a Restart Snort button at the bottom of this screen.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-39&amp;quot;&lt;br /&gt;
'''Figure 5-39. Snort IDS'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt596-web.png|Snort IDS]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
The Network Settings screen allows you to set the various network options, including your Home and External networks, various servers, and port selections ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-40|Figure 5-40]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-40&amp;quot;&lt;br /&gt;
'''Figure 5-40. Network settings'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt597-web.png|Network settings]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
The PreProcessors screen allows you to enable and disable the various preprocessors, along with setting required options ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-41|Figure 5-41]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-41&amp;quot;&lt;br /&gt;
'''Figure 5-41. Preprocessors'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt598-web.png|Preprocessors]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
The Alerts  Logging screen allows you to enable, disable, and set the options on the assorted output plug-ins ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-42|Figure 5-42]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-42&amp;quot;&lt;br /&gt;
'''Figure 5-42. Alerts  Logging'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt599-web.png|Alerts  Logging]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
The final screen, Edit Config File, allows you to directly edit the Snort configuration file by hand ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-43|Figure 5-43]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-43&amp;quot;&lt;br /&gt;
'''Figure 5-43. Edit Config File'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt600-web.png|Edit Config File]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
In all the screens, you should set up Snort per your requirements, following the recommendations that we have provided in the other recipes in this book.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Administering Snort with HenWen ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You need to administer Snort on a Mac OS X machine.&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
There are two possible ways to administer Snort on a Mac OS X machine, depending on the way you installed Snort. If you installed by compiling the source code, you would administer it the same as on any other Unix machine—by editing the configuration files directly. However, if you installed Snort by using the HenWen packages described in [[Snort Cookbook/Installation and Optimization|Chapter 1]], you can use HenWen to carry out further administrative tasks.&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
HenWen provides a GUI interface to most of the Snort configuration options. Once it is installed, double-click on the HenWen icon to bring up the interface. Each time it is run, you see the Welcome screen asking for registration. If you are going to be running HenWen within a commercial setting, you are obliged to pay the shareware fee to help fund further development; any other situation is free of cost ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-44|Figure 5-44]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-44&amp;quot;&lt;br /&gt;
'''Figure 5-44. HenWen Welcome screen'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt601-web.png|HenWen Welcome screen]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
Clicking OK will bring up the Network configuration main screen ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-45|Figure 5-45]]). It may also bring up an error telling you that the Snort daemon is not running, which is fine, because it isn't yet ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-46|Figure 5-46]]). The Quit button is somewhat misleading, as it doesn't quit the application; it only closes the window.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-45&amp;quot;&lt;br /&gt;
'''Figure 5-45. HenWen network configuration'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt602-web.png|HenWen network configuration]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-46&amp;quot;&lt;br /&gt;
'''Figure 5-46. Error—Snort daemon is not running'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt603-web.png|Error—Snort daemon is not running]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
There are six main tabs in the HenWen interface: Preprocessors, Output, Alerts, Snort, Spoof Detector, and Network. As previously shown, you start in the Network tab. This screen defines the network properties of the Snort daemon. The first defined property is the interface on which Snort will listen, followed by a checkbox to determine whether the interface should be put into promiscuous mode. If you are only concerned about traffic to or from the host on which you are running, there is no need to make the card promiscuous; this will also increase the system's efficiency. Also, today's switched networks protect against promiscuous mode, so you will have to either make a setting change in the switch to allow it or use a hub or tap.&lt;br /&gt;
&lt;br /&gt;
Next, you can specify values for your network, such as the ranges of the internal and external network, specific servers, and some port configuration options for specific services. You should set the details to reflect your configuration, as this will increase the efficiency of the Snort daemon, monitoring only relevant traffic, rather than all traffic.&lt;br /&gt;
&lt;br /&gt;
At the very bottom of this tab are the Start NIDS and Stop NIDS buttons that allow you to start and stop the Snort daemon. If you make any configuration changes, you must stop and restart the daemon for those changes to take effect.&lt;br /&gt;
&lt;br /&gt;
Starting at the other end of the tab list, we have the Preprocessors tab ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-47|Figure 5-47]]). Here, you can see options to set the preprocessors that are described in previous chapters, and also the settings for Spade, which HenWen contains precompiled. Read the other recipes on the preprocessors, and enable those that are appropriate to your environment. Remember though: each preprocessor enabled adds overhead on performance, so enable only those that you know you need. The default set is quite reasonable.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-47&amp;quot;&lt;br /&gt;
'''Figure 5-47. HenWen preprocessor configuration'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt604-web.png|HenWen preprocessor configuration]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
Next is the Output tab (see [[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-48|Figure 5-48]]). In this tab, you can alter your logging options, including setting up logging to a database. If you are going to use LetterStick for alerting, you'll need to enable the Log alerts to a Unix socket checkbox here.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-48&amp;quot;&lt;br /&gt;
'''Figure 5-48. HenWen output configuration'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt605-web.png|HenWen output configuration]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
The next tab is Alerts. This is where you select the rules to be scanned against. You can add, delete, and edit rules here ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-49|Figure 5-49]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-49&amp;quot;&lt;br /&gt;
'''Figure 5-49. HenWen alerts configuration'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt606-web.png|HenWen alerts configuration]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
The Snort tab contains settings for Snort itself ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-50|Figure 5-50]]). You can select the detection engine to be used and set up the various decoder options.&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-50&amp;quot;&lt;br /&gt;
'''Figure 5-50. HenWen Snort configuration'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt607-web.png|HenWen Snort configuration]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
The final tab contains the settings for the Spoof Detector. This enables detection of ARP poisoning and spoofing attacks ([[Snort Cookbook/Administrative Tools#snortckbk-CHP-5-FIG-51|Figure 5-51]]).&lt;br /&gt;
&lt;br /&gt;
div id=&amp;quot;snortckbk-CHP-5-FIG-51&amp;quot;&lt;br /&gt;
'''Figure 5-51. HenWen Spoof Detector configuration'''&lt;br /&gt;
&lt;br /&gt;
[[Image:Snort Cookbook_I_5_tt608-web.png|HenWen Spoof Detector configuration]]&lt;br /&gt;
/div&lt;br /&gt;
&lt;br /&gt;
HenWen is very straightforward to use—it just provides an easy-to-use graphical interface to all the Snort options. You should refer to the remainder of the book and other reference sources to determine which options you need to use. Once you know, it becomes a matter of selecting a checkbox rather than editing the text configuration files.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
[[Snort Cookbook/Installation and Optimization#Installing Snort on Mac OS X|Recipe 1.6]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Newbies Playing with Snort Using EagleX ==&lt;br /&gt;
&lt;br /&gt;
=== Problem ===&lt;br /&gt;
&lt;br /&gt;
You want to use Snort, ACID, MySQL, Apache, etc., but you either don't have a *nix box or are more comfortable with the MS Windows platform. Can you run these applications without having to get a Unix guru to set it up for you?&lt;br /&gt;
&lt;br /&gt;
=== Solution ===&lt;br /&gt;
&lt;br /&gt;
A product called EagleX from Engage Security allows you to set all this up on a Windows machine with local only listeners and connections.&lt;br /&gt;
&lt;br /&gt;
=== Discussion ===&lt;br /&gt;
&lt;br /&gt;
This product is offered for free from Engage Security at the following site: . It is a single 16-MB file that includes the following:&lt;br /&gt;
&lt;br /&gt;
* Snort 2.01 Build 88&lt;br /&gt;
* IDScenter 1.1 RC4&lt;br /&gt;
* Apache 1.2.28&lt;br /&gt;
* PHP 4.3.2&lt;br /&gt;
* MySQL 3.23.55&lt;br /&gt;
* ACID 0.9.6b23&lt;br /&gt;
* JPGraph 1.9.1&lt;br /&gt;
* Oinkmaster 0.8 Win32 (modificated; original script by Andreas Östling)&lt;br /&gt;
* WinPCAP 3.0 final&lt;br /&gt;
&lt;br /&gt;
As you can tell already, this is not kept up to date, so this should be used only as an educational tool. However, if you want to run the latest version of Snort, you can upgrade the Snort portion of EagleX once it is installed.&lt;br /&gt;
&lt;br /&gt;
Installation is as simple as following the prompts. If you are lost during the installation, see the recipe Installing and Configuring IDScenter ([[Snort Cookbook/Administrative Tools#Installing and Configuring IDScenter|Recipe 5.2]]), as this is the core of EagleX. If you have ACID questions, see the recipe Installing and Configuring ACID ([[Snort Cookbook/Administrative Tools#Installing and Configuring ACID|Recipe 5.6]]).&lt;br /&gt;
&lt;br /&gt;
To change EagleX to use a new version of Snort, download a copy of Snort for Windows from  and follow these instructions:&lt;br /&gt;
&lt;br /&gt;
ol&lt;br /&gt;
lidivRun the new version of Snort's install program. It should default install to ''C:\Snort'' while the EagleX software was installed in ''C:\eaglex'', unless you specified another location.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivIf you want to save the original configuration of Snort 2.0, just rename the ''C:\eaglex\snort'' directory to something else such as ''C:\eaglex\snort_eaglex''.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivCopy your new Snort 2.2.x directory into the EagleX directory:&lt;br /&gt;
&lt;br /&gt;
 copy C:\snort C:\eaglex&amp;quot;&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivCreate a ''logs'' directory under the Snort directory.&lt;br /&gt;
&lt;br /&gt;
 mkdir C:\eaglex\snort\logs&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
lidivRestart IDScenter and click Start Snort. Snort should now be running and capturing packets with the new Version 2.2.x.&lt;br /&gt;
/div/li&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/ol&lt;br /&gt;
&lt;br /&gt;
Other EagleX components can also be upgraded to newer versions.&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 mailing lists&lt;/div&gt;</description>
			<pubDate>Wed, 26 Aug 2009 17:56:22 GMT</pubDate>			<dc:creator>Docbook2Wiki</dc:creator>			<comments>http://commons.oreilly.com/wiki/index.php/Talk:Snort_Cookbook/Administrative_Tools</comments>		</item>
	</channel>
</rss>