netsniff-ng
From http://netsniff-ng.org:
netsniff-ng is a free Linux networking toolkit, a Swiss army knife for your daily Linux network plumbing if you will. Its gain of performance is reached by zero-copy mechanisms, so that on packet reception and transmission the kernel does not need to copy packets from kernel space to user space and vice versa.
Usage
Security Onion uses netsniff-ng to collect full packet capture in the form of pcap files.
Output
/nsm/sensor_data/HOSTNAME-INTERFACE/dailylogs/YYYY-MM-DD/HOSTNAME is your actual hostname
INTERFACE is your actual sniffing interface
YYYY-MM-DD is the year, month, and date the pcap was recorded
Analysis
Besides accessing the pcaps in the directory shown above, you can also pivot to full packet capture from Sguil and CapMe.
Troubleshooting
/var/log/nsm/HOSTNAME-INTERFACE/netsniff-ng.logTuning
If sostat report packet loss in netsniff-ng, you may want to consider one or more of the following options in /etc/nsm/HOSTNAME-INTERFACE/sensor.conf:
increase PCAP_RING_SIZE
set PCAP_OPTIONS to “–mmap” to enable memory-mapped IO
Please note that both of these options will cause netsniff-ng to consume more RAM.