Giter Club home page Giter Club logo

securityonion-devops's Introduction

SecurityOnion-DevOps

The sosensorfix script was made because in my personal use of utilizing Security Onion, I run into a problem where the snort.conf file in the /etc/nsm/"sensor name"/ directory fails to pass the snort -c /etc/nsm/"sensor interface name"/snort.conf -T debugging test. I receive a few errors running this test after a fresh install of security onion. These errors include; can't find directory to store snort logs, and can't intialize daq pfring.

After some troubleshooting of the snort.conf file on the sniffing interface directory, I came up with a solution that works.

The original configuration contains the following inside the snort.conf file config daq: pfring config daq_dir: /opt/pfring/lib/daq config daq_var: clusterid="random number" config daq_var: clustermode=4

I have found that if you change this section to the following it solves the daq pfring intialization error config daq: pcap config daq_dir: /usr/include config daq_var: clusterid="random number" config daq_mode: passive

Notice you don't have to change the config daq_var: clusterid="random number", the default configuration is fine.

After this change is made, it still can't find snort log directory, so I simply manually added a snort directory in /var/log/ mkdir snort

With these changes your Security Onion Sensor should be working great and pass the pre checks snort -c /etc/nsm/"sensor interface name"/snort.conf -T

I have made a bash script to automate this process Note: It will only work after a fresh install file name is "sosensorfix"

Let me know if you think I'm missing something I'll check it out Hope this helps anyone with this issue.

securityonion-devops's People

Contributors

cybernetics-security-ai avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.