root@WANIDS:~# barnyard2 -c /etc/nsm/WANIDS-eth1/barnyard2.conf -d /nsm/sensor_data/WANIDS-eth1 -f snort.unified2 -w /etc/nsm/WANIDS-eth1/barnyard2.waldo -i 1 -UKevin Branch
Running in Continuous mode
--== Initializing Barnyard2 ==--
Initializing Input Plugins!
Initializing Output Plugins!
Parsing config file "/etc/nsm/WANIDS-eth1/barnyard2.conf"
: Duplicate classification "default-login-attempt"found, ignoring this line
: Duplicate classification "non-standard-protocol"found, ignoring this line
: Duplicate classification "shellcode-detect"found, ignoring this line
: Duplicate classification "string-detect"found, ignoring this line
: Duplicate classification "suspicious-filename-detect"found, ignoring this line
: Duplicate classification "suspicious-login"found, ignoring this line
: Duplicate classification "system-call-detect"found, ignoring this line
: Duplicate classification "tcp-connection"found, ignoring this line
: Duplicate classification "trojan-activity"found, ignoring this line
: Duplicate classification "unusual-client-port-connection"found, ignoring this line
: Duplicate classification "web-application-activity"found, ignoring this line
Barnyard2 spooler: Event cache size set to [2048]
Log directory = /nsm/sensor_data/WANIDS-eth1
INFO database: Defaulting Reconnect/Transaction Error limit to 10
INFO database: Defaulting Reconnect sleep time to 5 second
sguil: sensor name = WANIDS-eth1
sguil: agent port = 8000
sguil: Connected to localhost on 8000.
database: compiled support for (mysql)
database: configured to use mysql
database: schema version = 107
database: host = 127.0.0.1
database: user = root
database: database name = snorby
database: sensor name = WANIDS-eth1:1
database: sensor id = 1
database: sensor cid = 6212
database: data encoding = hex
database: detail level = full
database: ignore_bpf = no
database: using the "alert" facility
--== Initialization Complete ==--
______ -*> Barnyard2 <*-
/ ,,_ \ Version 2.1.11 (Build 317) TCL
|o" )~| By Ian Firns (SecurixLive): http://www.securixlive.com/
+ '''' + (C) Copyright 2008-2012 Ian Firns <fir...@securixlive.com>
Using waldo file '/etc/nsm/WANIDS-eth1/barnyard2.waldo':
spool directory = /nsm/sensor_data/WANIDS-eth1
spool filebase = snort.unified2
time_stamp = 1391216083
record_idx = 14057
Opened spool file '/nsm/sensor_data/WANIDS-eth1/snort.unified2.1391216083'
INFO [dbProcessSignatureInformation()]: [Event: 6823] with [gid: 1] [sid: 2200034] [rev: 1] [classification: 0] [priority: 3] Signature Message -> "[SURICATA TCP header length too small]"
was not found in barnyard2 signature cache, this could mean its is the first time the signature is processed, and will be inserted
in the database with the above information, this message should only be printed once for each signature that is not present in the database
The new inserted signature will not have its information present in the sig_reference table,it should be present on restart
if the information is present in the sid-msg.map file.
You can allways update the message via a SQL query if you want it to be displayed correctly by your favorite interface
Segmentation fault (core dumped)
sudo apt-get install libmysqlclient-dev libpcap-dev libtool autoconf tcl8.4-devThe securityonion-barnyard2 source package actually referred to "--with-tcl=/usr/lib/tcl8.5/" but since tcl8.4 seems to be what in included in SO stable, I had to change it to "--with-tcl=/usr/lib/tcl8.4/". It was also necessary to clear out the sig_reference and reference tables in the snorby database before the new barnyard2 would work, but from what I read that is recommended anyway when upgrading barnyard2. It has run for a while with diverse events flowing through it just fine without any crash yet. I have not yet seen a "[SURICATA TCP header length too small]" event though, so I'm going to wait and see. I'll let you know how it goes.
wget https://github.com/firnsy/barnyard2/archive/v2-1.13.tar.gz
tar zxvf v2-1.13.tar.gz
cd barnyard2-2-1.13/
./autogen.sh
./configure --prefix=/usr --with-tcl=/usr/lib/tcl8.4/ --with-libpcap-includes=/opt/pfring/lib/ --with-mysql-libraries=/usr/lib/*-linux-gnu/ --with-mysql-includes=/usr/include/mysql/
make
mv /usr/bin/barnyard2 /usr/bin/barnyard2-old
sudo nsm_sensor_ps-stop --only-barnyard2
make install
mysql snorby -e "delete from sig_reference; delete from reference;"
sudo nsm_sensor_ps-start --only-barnyard2
Doug,
Yes I could disable that one rule which appears to possibly be tripping a barnyard 2.1.11 bug. I didn't try that yet because I figured whatever was causing the problem with that one rule would eventually trip me up on some other rule I just had not seen yet.
I would be happy to try barnyard 2.1.13. Do you have an RPM already built sitting in a testing repo? If not, I can build barnyard2 myself.
Kevin
Kevin