GithubHelp home page GithubHelp logo

alir3z4 / ansible-suricata Goto Github PK

View Code? Open in Web Editor NEW
14.0 4.0 12.0 50 KB

An Ansible playbook for deploying the Suricata intrusion detection system and fetching Snort rules with Oinkmaster.

Home Page: https://galaxy.ansible.com/list#/roles/1829

License: BSD 3-Clause "New" or "Revised" License

Shell 1.39% Jinja 98.61%

ansible-suricata's Introduction

Ansible Suricata Playbook

An Ansible playbook for deploying the Suricata intrusion detection system and fetching Snort rules with Oinkmaster.

Role Variables

Below you can find the variables with their default variables.

suricata_sniffing_interface: eth0
suricata_sniffing_interface_type: 100M
suricata_rules_archive_url: http://rules.emergingthreats.net/open/suricata/emerging.rules.tar.gz
suricata_log_dir: /var/log/suricata/
suricata_log_dir_certs: /var/log/suricata/certs/
suricata_rules_dir: /etc/suricata/rules/

Installation

From your Ansible's roles folder run:

git submodule add https://github.com/ajdelgado/ansible-suricata.git suricata

Platforms

Tested on:

  • Ubuntu focal

Usage Example

  1. Create a group called nids
  2. Add a host with access to all traffic (a router or use port mirroring in your switch to the port where this host is connected) Inventory example (/etc/ansible/inventories/inventory):
---
all:
  children:
    nids:
      hosts:
        my_router:
  1. Set the variables in group_vars matching your system Group variables example file (/etc/ansible/inventories/group_vars/nids/nids_vars.yml):
---
suricata_sniffing_interface: eno1
suricata_sniffing_interface_type: 1000M
suricata_rules_archive_url: http://rules.emergingthreats.net/open/suricata/emerging.rules.tar.gz
suricata_log_dir: /var/log/suricata/
suricata_log_dir_certs: /var/log/suricata/certs/
suricata_rules_dir: /etc/suricata/rules/
  1. Create a playbook like: Playbook example file (/etc/ansible/playbooks/nids.yml):
- name: Set up Suricata in NIDS hosts
  hosts: nids
  roles:
    - role: suricata

Dependencies

None!

License

BSD

Authors Information

ansible-suricata's People

Contributors

ajdelgado avatar alir3z4 avatar mjallday avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ansible-suricata's Issues

Support for systemd

A system running systemd (e.g. Ubuntu Focal) doesn't have the package sysv-rc-conf and the way to manage services is done via systemd.

Documentation

Sections to be added to README.md

  • Installation
  • Role Variables
  • Platforms
  • Usage Example

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.