snort pfring error

792 views
Skip to first unread message

Christopher Lowson

unread,
Aug 14, 2014, 7:50:28 PM8/14/14
to securit...@googlegroups.com
Hey Guys,

Fresh install, didn't change anything accept disabling a few snort rules and running a rule-update and then it crashes.

Error from logs:

/opt/pfring/lib/daq/daq_pfring.so: dlopen: /opt/pfring/lib/daq/daq_pfring.so: un
ERROR: Can't find pfring DAQ!
Fatal Error, Quitting..


Any ideas on how to fix this without a reinstall?

Christopher Lowson

unread,
Aug 14, 2014, 8:14:42 PM8/14/14
to securit...@googlegroups.com
using this broke everything

sudo apt-get install --reinstall securityonion-pfring-module

Status: HIDS
* ossec_agent (sguil) [ FAIL ]
Status: Bro
Name Type Host Status Pid Peers Started
manager manager x.x.x.x stopped
proxy proxy x.x.x.x stopped
x-x-eth1-1 worker 192.168.0.241 stopped
Status: x-x-eth1
* netsniff-ng (full packet data) [ FAIL ]
* pcap_agent (sguil) [ FAIL ]
* snort_agent-1 (sguil) [ FAIL ]
* snort-1 (alert data) [ FAIL ]
* barnyard2-1 (spooler, unified2 format) [ FAIL ]
* prads (sessions/assets) [ FAIL ]
* sancp_agent (sguil) [ FAIL ]
* pads_agent (sguil) [ FAIL ]
* argus [ FAIL ]
* http_agent (sguil) [ FAIL ]

Christopher Lowson

unread,
Aug 14, 2014, 8:17:20 PM8/14/14
to securit...@googlegroups.com
quick restart of all services leaves only two:

* snort-1 (alert data) [ FAIL ]

* stale PID file found, process will be restarted at the next 5-minute interval!


* barnyard2-1 (spooler, unified2 format) [ FAIL ]

* stale PID file found, process will be restarted at the next 5-minute interval!

Christopher Lowson

unread,
Aug 14, 2014, 8:34:12 PM8/14/14
to securit...@googlegroups.com
Quick solution for anyone having and issue and dose not care about using pfring:

sudo vi /etc/nsm/sensor-xyz/snort.conf

comment out:

#config daq: pfring
#config daq_dir: /opt/pfring/lib/daq
#config daq_var: clusterid=52
#config daq_var: clustermode=4

Still trying to find a fix to the issue tho.

Heine Lysemose

unread,
Aug 15, 2014, 1:29:56 AM8/15/14
to securit...@googlegroups.com

Hi

Did you "by accident" run sudo apt-get upgrade or sudo apt-get dist-upgrade?

In either case the process broke the pfring.

Doug has made a small tool to take care of the update process in the right way, sudo soup.

Could you send the output of sudo sostat-redacted.

Regards,
Lysemose

--
You received this message because you are subscribed to the Google Groups "security-onion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to security-onio...@googlegroups.com.
To post to this group, send email to securit...@googlegroups.com.
Visit this group at http://groups.google.com/group/security-onion.
For more options, visit https://groups.google.com/d/optout.

Christopher Lowson

unread,
Aug 15, 2014, 3:40:05 PM8/15/14
to securit...@googlegroups.com
Hey Lysemose.

Nope I always use soup.

Been running SO for months now and have had this issue a few times after a restart of snort. I end up reloading the system and the issue is gone. This time it happened twice after a fresh install and want to trace down a fix.

Output attached.

NOTE: Snort is currently running with pfring, will switch back and rerun if you need.

NOTE: I do have trisul running but it was installed after this issue.

Also I noticed that there is dailylogs directory's for non monitored interfaces, is this expected from 12.04.04 version?

sostat-redacted.txt

Doug Burks

unread,
Aug 15, 2014, 3:45:19 PM8/15/14
to securit...@googlegroups.com
Hi Chris,

What's the output of the following?

dpkg -l | grep pfring

--
Doug Burks
Need Security Onion Training or Commercial Support?
http://securityonionsolutions.com

Christopher Lowson

unread,
Aug 15, 2014, 3:59:56 PM8/15/14
to securit...@googlegroups.com
Hey Doug,

Output Attached.

dpkg.txt

Doug Burks

unread,
Aug 15, 2014, 4:08:07 PM8/15/14
to securit...@googlegroups.com
That looks correct.

What's the output of the following?

ls -alhR /opt/pfring/lib/

On Fri, Aug 15, 2014 at 3:59 PM, Christopher Lowson
<lowson...@gmail.com> wrote:
> Hey Doug,
>
> Output Attached.
>
> --
> You received this message because you are subscribed to the Google Groups "security-onion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to security-onio...@googlegroups.com.
> To post to this group, send email to securit...@googlegroups.com.
> Visit this group at http://groups.google.com/group/security-onion.
> For more options, visit https://groups.google.com/d/optout.



Christopher Lowson

unread,
Aug 15, 2014, 4:10:05 PM8/15/14
to securit...@googlegroups.com
Hey Doug,

Output Attached.

ls.txt

Doug Burks

unread,
Aug 15, 2014, 4:12:42 PM8/15/14
to securit...@googlegroups.com
That looks correct also.

Your original email includes an error, but it appears to be truncated:

/opt/pfring/lib/daq/daq_pfring.so: dlopen: /opt/pfring/lib/daq/daq_pfring.so: un

Can you provide the full error?

On Fri, Aug 15, 2014 at 4:10 PM, Christopher Lowson

Christopher Lowson

unread,
Aug 15, 2014, 4:15:51 PM8/15/14
to securit...@googlegroups.com
Sorry that was by bad.

Full Error:

/opt/pfring/lib/daq/daq_pfring.so: dlopen: /opt/pfring/lib/daq/daq_pfring.so: undefined symbol: pfring_set_filtering_mode

Doug Burks

unread,
Aug 15, 2014, 4:21:06 PM8/15/14
to securit...@googlegroups.com
Strange. Is it possible you're running a 32-bit system?

Christopher Lowson

unread,
Aug 15, 2014, 4:28:13 PM8/15/14
to securit...@googlegroups.com
Hey Doug,

So just because we love to add a twist to things on a Friday.

I did nothing at all to the system from when I posted this yesterday but disabling the pfring in the snort config to at least run and the few commands you all requested.

So while going back a forth with you I put the pfring config back into snort (just to "try") and restarted it and it worked.

I have no clue what was wrong or what fixed it. Glad its fixed...

Next time this happens I will quickly run all the commands and have outputs at the time of the issue.

Maybe pfring was locked up?

Oh also its 64bit:
3.2.0-67-generic #101-Ubuntu SMP Tue Jul 15 17:46:11 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

Christopher Lowson

unread,
Sep 6, 2014, 10:05:10 AM9/6/14
to securit...@googlegroups.com
So last night this happened again. Error:

[ Number of patterns truncated to 20 bytes: 6571 ]


/opt/pfring/lib/daq/daq_pfring.so: dlopen: /opt/pfring/lib/daq/daq_pfring.so: undefined symbol: pfring_set_filtering_mode
ERROR: Can't find pfring DAQ!
Fatal Error, Quitting..

Attached outputs

Let me know what other outputs I could do to track this down.

output.txt

Doug Burks

unread,
Sep 6, 2014, 9:44:37 PM9/6/14
to securit...@googlegroups.com
Hi Chris,

Is there anything else that happened last night that you could
correlate to this?

Have you installed updates recently?

Specifically, have you installed our new PF_RING and Snort packages?
http://blog.securityonion.net/2014/08/new-pfring-snort-suricata-bro-packages.html

Christopher Lowson

unread,
Sep 6, 2014, 9:49:26 PM9/6/14
to securit...@googlegroups.com, Doug Burks

Nope nothing new at all, just noticed this morning I had no alerts and that snort was not running, I suspect it died when the rule update happens.

I will wait a few days like last time and try to enable the pfring again for snort and see if it takes.

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Doug Burks

unread,
Sep 6, 2014, 10:03:20 PM9/6/14
to securit...@googlegroups.com
Based on your output.txt, it looks like you haven't installed the latest updates yet. I'd  recommend that you go ahead and do that. 

Christopher Lowson

unread,
Sep 7, 2014, 11:04:59 AM9/7/14
to securit...@googlegroups.com
After soap updates we have new issues:

Kernel issues: see http://i.imgur.com/yuqeEpS.jpg

So I went back to the last kernel and was able to boot.


onion server issues:

cron errors:

error: broctl-config.sh not found (try 'broctl install')

warning: new bro version detected (run the broctl "restart --clean" or "install"
command)

How would I fix these errors?

onion sensor issues:

new snort error:
[ Number of patterns truncated to 20 bytes: 3811 ]
pfring DAQ configured to passive.
ERROR: Can't initialize DAQ pfring (-1) -
Fatal Error, Quitting..

Also getting new bro alerts now:

[Bro] PacketFilter::Dropped_Packets

Message: 81 packets dropped after filtering, 445485 received, 445484 on link


Email Extensions
----------------


--
[Automatically generated]


I really don't want to reload this system if I don't have too.

Christopher Lowson

unread,
Sep 7, 2014, 1:45:33 PM9/7/14
to securit...@googlegroups.com
Update:

On the sensor:
A stop/start of bro cleared the packets dropped email.

On the server I commented out the cron that was running bro

Still working on the snort but I don't really see a fix yet

Also looking into the Kernel issue still, will update if I find anything.

Christopher Lowson

unread,
Sep 7, 2014, 3:02:50 PM9/7/14
to securit...@googlegroups.com
Update:

so one broken shut down leads to a chk disk in the new kernel, another quick reboot again and the kernel boots with no issues.

A re-try of snort with the pfring settings and no issue found...

Crazy what a simple reboot can fix...

Doug Burks

unread,
Sep 7, 2014, 7:46:29 PM9/7/14
to securit...@googlegroups.com
The random kernel/PF_RING issues may be indicative of hardware
failure. I'd recommend running full hardware diagnostics.
> --
> You received this message because you are subscribed to the Google Groups "security-onion" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to security-onio...@googlegroups.com.
> To post to this group, send email to securit...@googlegroups.com.
> Visit this group at http://groups.google.com/group/security-onion.
> For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages