Snort can operates in four modes, but we will concentrate on three and mention the fourth. First, we create a directory for our tests, and then we tell Snort to watch the loopback interface for traffic. In this mode (activated by -v) Snort is a simple network traffic sniffer.
In a separate terminal we send a single ICMP echo to the loopback address.
freebsd61-generic:/root# ping -c 1 127.0.0.1
Snort reports the following, and we interrupt capture with ctrl-C.
Sniffer mode is the simplest Snort mode, and it is best used to quickly ensure you can capture the traffic you expect to see on a given interface.
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.