mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
42 lines
1.1 KiB
INI
42 lines
1.1 KiB
INI
{%- set interface = salt['pillar.get']('sensor:interface', '') %}
|
|
|
|
{%- if salt['pillar.get']('sensor:bro_pins') %}
|
|
{%- if salt['pillar.get']('sensor:bro_proxies') %}
|
|
{%- set proxies = salt['pillar.get']('sensor:bro_proxies', '1') %}
|
|
{%- else %}
|
|
{%- set proxies = (salt['pillar.get']('sensor:bro_pins')|length/10)|round(0, 'ceil')|int %}
|
|
{%- endif %}
|
|
[manager]
|
|
type=manager
|
|
host=localhost
|
|
|
|
{% for demproxies in range(proxies) %}
|
|
[proxy-{{ demproxies }}]
|
|
type=proxy
|
|
host=localhost
|
|
{% endfor %}
|
|
|
|
[worker-1]
|
|
type=worker
|
|
host=localhost
|
|
interface=af_packet::{{ interface }}
|
|
lb_method=custom
|
|
|
|
{%- if salt['pillar.get']('sensor:bro_lbprocs') %}
|
|
lb_procs={{ salt['pillar.get']('sensor:bro_lbprocs', '45') }}
|
|
{%- else %}
|
|
lb_procs={{ salt['pillar.get']('sensor:bro_pins')|length }}
|
|
{%- endif %}
|
|
{%- if salt['pillar.get']('sensor:bro_pins') %}
|
|
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
|
|
{%- else %}
|
|
[brosa]
|
|
type=standalone
|
|
host=localhost
|
|
interface={{ interface }}
|
|
{%- endif %}
|