Snort can operate 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.1Snort 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.
Requires Membership to View
To gain access to this and all member only content, please provide the following information:
By submitting your registration information to SearchSecurityChannel.com you agree to receive email communications from the TechTarget network of sites, and/or third party content providers that have relationships with TechTarget, based on your topic interests and activity, including updates on new content, event notifications, new site launches and market research surveys. Please verify all information and selections above. You may unsubscribe at any time from one or more of the services you have selected by editing your profile, unsubscribing via email or by contacting us here
- Your use of SearchSecurityChannel.com is governed by our Terms of Use
- We designed our Privacy Policy to provide you with important disclosures about how we collect and use your registration and other information. We encourage you to read the Privacy Policy, and to use it to help make informed decisions.
- If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States.
Snort: Fundamentals and installation tips for the channel
Introduction
Installation
Sniffer mode
Packet logger mode
Intrusion detection mode
Conclusion
About the author
Richard Bejtlich is founder of TaoSecurity, author of several books on network security monitoring, including Extrusion Detection: Security Monitoring for Internal Intrusions, and operator of the TaoSecurity blog (taosecurity.blogspot.com).
This was first published in December 2006