AlienVault OSSIM v4.2 Released! Download
here
suricata stops and starts
Trying to get suricata working on two stand alone (not DB, FW, SRV) systems. Running 4.1.2 on them as well as the main AV server. This is all the open source versions.
Suricata will run on sensor 1 for 5 minutes or so, then crash. I get events in the server when it is running so I know it is ok that way. I can't seem to find anything in the log files though to tell me what is happening.
Sensor 1 has 2 dual core CPU and 6G of RAM. It is running two interfaces, one is copper ethernet at 1G and the other is a bonded fiber from a netowkr tap.
Sensor 2 has 1 dual core CPU and 2 G of ram. It shows suricata running, but none of the events are showing up in the server. I get Ossec events from it first thing in the morning after some cron jobs run, or after a reboot. After a reboot i get some snort/suricata events.
And yes, the sensor interfaces are separate from the management ones.
I've been fighting with these since the upgrade to 4.0 with snort being the problem child before which was why i switched to suricata. I managed to get suricata working, which I could not do with snort, but still having some of these issues.
Any debugging help would be appreciated. I will also continue to work on this myself.
Thanks!!
0 • •
Answers
- Abuse
0 • Off Topic Dislike Like Awesome •Jan 8 11:06:07 soknse08 kernel: [357337.756466] Detect1[22472]: segfault at 7fc259a76058 ip 00007fc27434f12e sp 00007fc271e03840 error 6 in libc-2.11.3.so[7fc2742da000+159000]
Jan 8 11:08:51 soknse08 kernel: [357501.723089] Detect1[22767]: segfault at 7f726ca721a8 ip 00007f7279ff012e sp 00007f7277aa4810 error 6 in libc-2.11.3.so[7f7279f7b000+159000]
adding this from the suricata start log:
8/1/2013 -- 11:08:04 - <Warning> - [ERRCODE: SC_WARN_OUTDATED_LIBHTP(207)] - libhtp < 0.2.7 detected. Keyword http_raw_header will not be able to inspect response headers.
- Abuse
0 • Off Topic Dislike Like Awesome •How much can you test on your ossim server? Is it in production? Is it virtual so you can clone it and change the ip so we have somthing to work on without screwing up your production server? Same for your Sensor? Virtuel or not. I guess it's not in production with the errors you describe :)
- Abuse
0 • Off Topic Dislike Like Awesome •I own the systems so I can do whatever I want to them.
They are not virtual.
- Abuse
0 • Off Topic Dislike Like Awesome •- Abuse
0 • Off Topic Dislike Like Awesome •I am also having problems with ntop and when i try to delete large numbers of events from the database, they don't seem to really get deleted as they still show in the SIEM. I get an error when I try to delete a large number, like all the events from a single IP or all events of a particular kind.
I can delete smaller blocks of events, like under 200. But it still seems like not all of those events get deleted, unless it takes a really long time to do that process.
I have about 146,000 events in the database right now. The main server has 2 8 core CPU's, 32G of RAM and 1.3 TB of raid 5. It is a Dell server.
- Abuse
0 • Off Topic Dislike Like Awesome •- Abuse
0 • Off Topic Dislike Like Awesome •Ah. Looks like it is since the md5 matches on both the one I have from before and this one.
Like I said, I am not so worried about the data. I refresh all my Ossim installs every year or so as they seem to get mucked up as updates come out or because of other various problems.
And since snort and suricata are not working consistently, all the data is pretty useless anyway.
I'll try a full refresh and see what happens.
- Abuse
0 • Off Topic Dislike Like Awesome •Sigh. Just one thing after another. Seems like the way it is.
I'll see if maybe suricata is more stable.
- Abuse
0 • Off Topic Dislike Like Awesome •Sittl suricata would stop and start. So i did some more digging. Found some info about some tuning for suricata.
In suricata-debian.yaml I uncommented and changed the max-pending-packets setting to 2048 and this seems to have helped out. So far it has been running for some time now.
Another thing I noticed in the yaml file is that it is specifying to run pfring on the main admin interface eth0. Should I change this in the yaml file so it is on the sniffing interface? Also, this makes me wonder if ntop is also got pfring running on the wrong interface. Is there any way to verify and change it? I do get excessive amounts of dropped packets in ntop, even on a lower traffic sensor.
This new sensor is averaging about 340Mbit/s.
Thanks!
P
- Abuse
0 • Off Topic Dislike Like Awesome •However ntop is still reporting something like 1000% loss. I am pretty much giving up on ntop on this sensor as I think there is just way too much traffic and I think there is a very high loss from the span port and that is the real problem.
But now I cant get ntop to stop getting restarted by the ossim-agent. I have unchecked it from the server GUI and also made sure it was disabled in ossim-setup, but it keeps restarting. I have renamed the executable to make it fail but that seems like a not so great idea.
Thx
- Abuse
0 • Off Topic Dislike Like Awesome •- Abuse
0 • Off Topic Dislike Like Awesome •