| How to verify that Snort is operating |
| Source: JP Vossen, CISSP - Posted by Joe Shakespeare | ||
|
To start, you can run it in sniffer mode from the command line, which will confirm that the network card is working properly, a span port is enabled (see Network-based IDS: How to deal with switches and segments) and Snort is actually seeing traffic. In the case where you're using more than one network interface card (NIC) (see How many interfaces does my sensor need?), you'll need to define the exact one for Snort to use. To find the name of the interface in Linux/Unix, use ifconfig; and in Windows, use snort -W. Then, use snort –vi (interface name); for example snort –vi eth1 in Linux or snort –vi 2 in Windows, to tell Snort which NIC to sniff. If everything is working you'll get a stream of packet header information (similar to tcpdump/windump) scrolling up the screen faster than you can read it. Press -C to stop the capture and review packet statistics such as the number of packets analyzed, a breakdown by protocol, fragmentation and more. Also experiment with the –d (dump) and –q (quiet) switches to see how they affect the output. Read this full article at JP Vossen, CISSP
Only registered users can write comments. Powered by AkoComment! |
||