mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-04-26 14:37:49 +02:00
Bro Salt Module - add file syncs
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
@load securityonion/shellshock
|
||||
|
||||
#############################
|
||||
## End SO Scrips Section ##
|
||||
## End SO Scripts Section ##
|
||||
#############################
|
||||
|
||||
#############################
|
||||
|
||||
+18
-4
@@ -1,19 +1,33 @@
|
||||
{%- set interface = salt['pillar.get'](sensor:interface) %}
|
||||
{%- set lbprocs = salt['pillar.get'](sensor:lbprocs) %}
|
||||
{%- set interface = salt['pillar.get']('sensor:interface', '') %}
|
||||
|
||||
{%- if salt['pillar.get']('sensor:bro_pins')|length > 1 %}
|
||||
{%- if salt['pillar.get']('sensor:bro_proxies'|length > 1) %}
|
||||
{%- set proxies = salt['pillar.get']('sensor:bro_proxies') %}
|
||||
{%- else %}
|
||||
{%- set proxies = (salt['pillar.get']('sensor:bro_pins')|length/10)|round(0, 'ceil')|int %}
|
||||
{%- endif %}
|
||||
[manager]
|
||||
type=manager
|
||||
host=localhost
|
||||
|
||||
[proxy]
|
||||
{%- for demproxies in range(proxies) %}
|
||||
[proxy-{{ demproxies }}]
|
||||
type=proxy
|
||||
host=localhost
|
||||
|
||||
[sotest-eth1]
|
||||
[worker-1]
|
||||
type=worker
|
||||
host=localhost
|
||||
interface=af_packet::{{ interface }}
|
||||
lb_method=custom
|
||||
{%- if salt['pillar.get']('sensor:bro_lbprocs'|length > 1) %}
|
||||
lb_procs={{ lbprocs }}
|
||||
{%- else %}
|
||||
lb_procs={{ salt['pillar.get']('sensor:bro_pins')|length }}
|
||||
{%- endif %}
|
||||
{%- if salt['pillar.get']('sensor:bro_pins'|length > 1) %}
|
||||
pin_cpus={{ salt['pillar.get']('sensor:bro_pins')|join(", ") }}
|
||||
{%- endif %}
|
||||
af_packet_fanout_id=23
|
||||
af_packet_fanout_mode=AF_Packet::FANOUT_HASH
|
||||
af_packet_buffer_size=128*1024*1024
|
||||
|
||||
Reference in New Issue
Block a user