Problem
You want to install Snort on your Windows machine.
Solution
Before you install Snort, you must download and install the WinPcap driver:
Now that WinPcap is installed, continue with the Snort installation:
Figure 1-1. License Agreement window
Figure 1-2. Installation Options window
Figure 1-3. Choose Components window
Figure 1-4. Choose Install Location window
Figure 1-5. Installing window
Figure 1-6. Installation Complete window, with Show Details
Figure 1-7. Successful Installation window
Discussion
Snort is available for Windows NT, 2000, and XP (but not Windows 98). It requires the free WinPcap driver to read network traffic off the wire. Snort Version 2.2.0 needs only a total of 9.2 MB to install (although you need much more to store logfiles).
The installation creates six subdirectories within the root C:Snort directory: bin, contrib, doc, etc, log, and rules. It also installs the Uninstall.exe file under the root C:Snort directory. The bin subdirectory contains the snort.exe executable and some DLL files. The contrib subdirectory contains various extra programs and contributed add-ons to Snort. The doc subdirectory holds the Snort manual, signature descriptions, and various installation and README files. The etc subdirectory holds various configuration files, including snort.conf. The log directory is empty, but is used later when Snort is running in packet logger mode. The rules subdirectory holds all the rules files that are activated via the snort.conf file.
Once Snort is installed, you can test it by running the Snort executable. From the command-line prompt, change to the directory that holds the Snort executableC:Snortin, in this case. Type snort -W to test that Snort is functioning and it can access the WinPcap drivers. The output should be a list of available network adapters on the computer, such as the following:
C:Snortin>snort -W -*> Snort! <*- Version 2.2.0-ODBC-MySQL-FlexRESP-WIN32 (Build 30) By Martin Roesch (roesch@sourcefire.com, www.snort.org) 1.7-WIN32 Port By Michael Davis (mike@datanerds.net, www.datanerds.net/~mike) 1.8 - 2.x WIN32 Port By Chris Reid (chris.reid@codecraftconsultants.com) Interface Device Description ------------------------------------------- 1 DeviceNPF_{28DE4D02-08E8-4AD3-9D6D-3CA34B7EF04F} (Intel(R) PRO/Wireless LAN2100 3B Mini PCI Adapter (Microsoft's Packet Scheduler) ) 2 DeviceNPF_{D194BF1A-3F38-4B9B-ACAE-A33FC77A5FD8} (VMware Virtual Ethernet Adapter) 3 DeviceNPF_{D16195CA-706E-4BC9-844A-98215EC5CC03} (VMware Virtual Ethernet Adapter)
If the output does not include one or more adapters, you may need to reinstall or install a different version of WinPcap. It is a good practice to reboot after installing the WinPcap drivers. If you are installing a different version of WinPcap, first uninstall the previous version by using the C:Program FilesWinPcap/Uninstall.exe program.
See Also
Recipe 1.5
Uninstalling Snort from Windows |
Installing Snort from Source on Unix
Logging to a File Quickly
How to Build Rules
Detecting Stateless Attacks and Stream Reassembly
Managing Snort Sensors
Generating Statistical Output from Snort Logs
Monitoring Network Performance
Index