Snort mailing list archives

Re: ERROR: Can't initialize DAQ pcap (-1) - truncated dump file; tried to read 4 file header bytes, only got 0


From: Scott Thomas <scott_pin () yahoo com>
Date: Wed, 30 Nov 2016 08:27:25 -0500

Al,

Thanks - I’m having trouble finding the pcap files (if they exist!). In /var/log/snort I see two files of 0 bytes - 
snort.log and alert.

Is the log directory the default location for them? (sorry to be so clueless!)

Scott

On Nov 30, 2016, at 8:09 AM, Al Lewis (allewi) <allewi () cisco com> wrote:

Scott,

      You don’t need the two interfaces right away. If you are pinging the device and DON’T see packets within the 
exit stats something else probably is wrong with your network setup.

As another test, can you read a pcap file and get alerts? 

Use the -r instead of the interface to replay an icmp pcap back into snort.

So your command would be "sudo snort -A console -q -u snort -g snort -c /etc/snort/snort.conf -r ‘whatever your pcap 
file is’


Try this first.

Albert Lewis
ENGINEER.SOFTWARE ENGINEERING
SOURCEfire, Inc. now part of Cisco
Email: allewi () cisco com 







On 11/30/16, 7:59 AM, "Scott Thomas" <scott_pin () yahoo com> wrote:

Hello Al,

Thank you for this response.

I do not see any packets within the exit status, and I do have a rule to alert on icmp (copied from the pdf guide).

However, I do not have two interfaces. I’ll see if I can get that set up and test it further.

Thank you!

Scott

On Nov 30, 2016, at 7:52 AM, Al Lewis (allewi) <allewi () cisco com> wrote:

Hello Scott,

    To start snort “inline” you need to two interfaces. Based on what you have below there is only one being used.

Do you see any packets within your exit stats? 

Do you have a rule setup to alert on the icmp traffic? (Snort will only log things that should be alerted on when 
using IDS mode)



Albert Lewis
ENGINEER.SOFTWARE ENGINEERING
SOURCEfire, Inc. now part of Cisco
Email: allewi () cisco com 







On 11/30/16, 7:29 AM, "Scott Thomas" <scott_pin () yahoo com> wrote:

This may be from being a newbie, but I see other indications of folks with a similar issue, but no solutions that 
have solved it for me.

I have searched the list via web and found a post of 5 October 2016 with a similar subject, but no resolution. I 
am running almost the identical setup.

Snort is on a Debian Jessie (8.6.0) vm (kvm).

I have configured my system per the doc Snort_2.9.8.x_on_Ubuntu_12-14-15.pdf (except for some path differences).

When I start snort inline (with sudo snort -A console -q -u snort -g snort -c /etc/snort/snort.conf -i eth0) it 
starts as expected, silently listening. I ping the IP of the vm system from another box, but there is no output on 
the console.

Checking the log:

sudo snort -r /var/log/snort/snort.log 
Running in packet dump mode

     --== Initializing Snort ==--
Initializing Output Plugins!
pcap DAQ configured to read-file.
ERROR: Can't initialize DAQ pcap (-1) - truncated dump file; tried to read 4 file header bytes, only got 0
Fatal Error, Quitting..

As with the poster in the prior thread, I can find nothing in the archives or an online search that helps me solve 
this.

Please help!

Thank you in advance,

Scott
------------------------------------------------------------------------------
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!



------------------------------------------------------------------------------
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://sourceforge.net/mailarchive/forum.php?forum_name=snort-users

Please visit http://blog.snort.org to stay current on all the latest Snort news!

Current thread: