Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Problem with Barnyard2

    Scheduled Pinned Locked Moved pfSense Packages
    11 Posts 2 Posters 4.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      carlossdossantos
      last edited by

      hello everybody!!
      i have a problem with mine barnyard2 when I run command:
      barnyard2 -c /etc/snort/barnyard2.conf

      NOTE: I have installed snort with barnyard2 in Virtual Machine.

      i get this error:
      carlos@carlos-VirtualBox:~$ barnyard2 -c /etc/snort/barnyard2.conf
      Running in Continuous mode

      –== Initializing Barnyard2 ==--
      Initializing Input Plugins!
      Initializing Output Plugins!
      Parsing config file "/etc/snort/barnyard2.conf"
      Log directory = /var/log/barnyard2
      database: 'mysql' support is not compiled into this build of snort

      ERROR: If this build of snort was obtained as a binary distribution (e.g., rpm,
      or Windows), then check for alternate builds that contains the necessary
      'mysql' support.

      If this build of snort was compiled by you, then re-run the
      the ./configure script using the '--with-mysql' switch.
      For non-standard installations of a database, the '--with-mysql=DIR'
      syntax may need to be used to specify the base directory of the DB install.

      See the database documentation for cursory details (doc/README.database).
      and the URL to the most recent database plugin documentation.
      Fatal Error, Quitting..

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        Have you also installed the Snort package into the VM?  That directory path of /etc/snort/barnyard2.conf" is not correct for a properly configured Snort installation.  On pfSense, Barnyard2 is really a support package for Snort; so Snort must also be installed and configured.  In fact, Snort installs Barnyard2 during its own installation.

        Bill

        1 Reply Last reply Reply Quote 0
        • C
          carlossdossantos
          last edited by

          Sorry for not giving details, but I'm doing a job monograph on intrusion detection, is a work of completion, only that I will simulate an attack on the virtual machine operating system is installed ubuntu 12.04 snort already installed, I'm having problems when I boot the barnyard2, I've looked at other forums the answer to the problem but it seems that does not have an exact answer, I find only parts of the discussion of the problem.

          1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks
            last edited by

            @carlossdossantos:

            Sorry for not giving details, but I'm doing a job monograph on intrusion detection, is a work of completion, only that I will simulate an attack on the virtual machine operating system is installed ubuntu 12.04 snort already installed, I'm having problems when I boot the barnyard2, I've looked at other forums the answer to the problem but it seems that does not have an exact answer, I find only parts of the discussion of the problem.

            Your response is a little difficult for me to follow due to the translation, but it sounds like you are trying to run Snort on Ubuntu 12.04 along with Barnyard2.  If that is true, then that has nothing to do with Snort on pfSense.  Am I misunderstanding your post?

            Bill

            1 Reply Last reply Reply Quote 0
            • C
              carlossdossantos
              last edited by

              @bmeeks:

              @carlossdossantos:

              Sorry for not giving details, but I'm doing a job monograph on intrusion detection, is a work of completion, only that I will simulate an attack on the virtual machine operating system is installed ubuntu 12.04 snort already installed, I'm having problems when I boot the barnyard2, I've looked at other forums the answer to the problem but it seems that does not have an exact answer, I find only parts of the discussion of the problem.

              Your response is a little difficult for me to follow due to the translation, but it sounds like you are trying to run Snort on Ubuntu 12.04 along with Barnyard2.  If that is true, then that has nothing to do with Snort on pfSense.  Am I misunderstanding your post?

              Bill

              Yes, I am trying to run the barnyard2 with Snort in ubuntu 12.04 you do not misunderstand my post, to make my project I need to use the barnyard2 with snort .. I'm still looking for an answer to this problem in barnyard2

              1 Reply Last reply Reply Quote 0
              • C
                carlossdossantos
                last edited by

                You can close the topic could solve the problem … the path of mysql was not directed corretamento was right. / Configure - with-mysql-libraries = / usr/lib/i386-linux-gnu / .. I appreciate the responses and thank you for your attention ..

                1 Reply Last reply Reply Quote 0
                • C
                  carlossdossantos
                  last edited by

                  I solved this problem but appeared other problem with waldo file

                  I run command:
                  carlos@carlos-VirtualBox:~$ barnyard2 -c /etc/snort/barnyard2.conf -d /var/log/snort -f snort.u2 -w /var/log/barnyard2/barnyard2.waldo
                  Running in Continuous mode

                  –== Initializing Barnyard2 ==--
                  Initializing Input Plugins!
                  Initializing Output Plugins!
                  Parsing config file "/etc/snort/barnyard2.conf"
                  Log directory = /var/log/barnyard2
                  database: compiled support for (mysql)
                  database: configured to use mysql
                  database: schema version = 107
                  database: host = localhost
                  database: user = root
                  database: database name = snort
                  database: sensor name = snort:eth0
                  database: sensor id = 3
                  database: sensor cid = 1
                  database: data encoding = hex
                  database: detail level = full
                  database: ignore_bpf = no
                  database: using the "log" facility

                  --== Initialization Complete ==--

                  ______ -> Barnyard2 <-
                  / ,,_ \ Version 2.1.9 (Build 263)
                  |o" )~| By the SecurixLive.com Team: http://www.securixlive.com/about.php

                  • '''' + (C) Copyright 2008-2010 SecurixLive.

                  Snort by Martin Roesch & The Snort Team: http://www.snort.org/team.html
                  (C) Copyright 1998-2007 Sourcefire Inc., et al.

                  WARNING: Ignoring corrupt/truncated waldofile '/var/log/barnyard2/barnyard2.waldo'
                  Waiting for new spool file

                  snort conf >>> http://pastebin.ca/2469866

                  barnyard2.conf>>> http://pastebin.ca/2469868

                  1 Reply Last reply Reply Quote 0
                  • bmeeksB
                    bmeeks
                    last edited by

                    The waldo file message is basically harmless.  Barnyard2 will complain about that file, but still work from my experience.

                    Bill

                    1 Reply Last reply Reply Quote 0
                    • C
                      carlossdossantos
                      last edited by

                      seems like I solved the problem he is using the file waldo, he just is waiting for new data 'waiting for new data', is that really how it works?

                      root@carlos-VirtualBox:~# barnyard2 -c /etc/snort/barnyard2.conf -d /var/log/snort -f snort.u2 -w /var/log/snort/barnyard2.waldo
                      Running in Continuous mode

                      –== Initializing Barnyard2 ==--
                      Initializing Input Plugins!
                      Initializing Output Plugins!
                      Parsing config file "/etc/snort/barnyard2.conf"
                      Log directory = /var/log/barnyard2
                      database: compiled support for (mysql)
                      database: configured to use mysql
                      database: schema version = 107
                      database:          host = localhost
                      database:          user = root
                      database:  database name = snort
                      database:    sensor name = snort:eth0
                      database:      sensor id = 3
                      database:    sensor cid = 11
                      database:  data encoding = hex
                      database:  detail level = full
                      database:    ignore_bpf = no
                      database: using the "log" facility

                      --== Initialization Complete ==--

                      ______  -> Barnyard2 <-
                      / ,,_  \  Version 2.1.9 (Build 263)
                      |o"  )~|  By the SecurixLive.com Team: http://www.securixlive.com/about.php

                      • '''' +  (C) Copyright 2008-2010 SecurixLive.

                      Snort by Martin Roesch & The Snort Team: http://www.snort.org/team.html
                                (C) Copyright 1998-2007 Sourcefire Inc., et al.

                      Using waldo file '/var/log/snort/barnyard2.waldo':
                          spool directory = /var/log/snort
                          spool filebase  = snort.u2
                          time_stamp      = 1382474203
                          record_idx      = 20
                      Opened spool file '/var/log/snort/snort.u2.1382474203'
                      Closing spool file '/var/log/snort/snort.u2.1382474203'. Read 20 records
                      Opened spool file '/var/log/snort/snort.u2.1382479354'
                      Waiting for new data

                      1 Reply Last reply Reply Quote 0
                      • bmeeksB
                        bmeeks
                        last edited by

                        @carlossdossantos:

                        seems like I solved the problem he is using the file waldo, he just is waiting for new data 'waiting for new data', is that really how it works?

                        Yep, just waiting for something to come in so he can log it to the database.

                        Bill

                        1 Reply Last reply Reply Quote 0
                        • C
                          carlossdossantos
                          last edited by

                          thanks for the replies, served much help

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.