mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Merge pull request #8751 from Security-Onion-Solutions/funstuff
Funstuff
This commit is contained in:
@@ -165,7 +165,8 @@ function add_sensor_to_minion() {
|
|||||||
echo " mtu: 9000" >> $PILLARFILE
|
echo " mtu: 9000" >> $PILLARFILE
|
||||||
echo "zeek:" >> $PILLARFILE
|
echo "zeek:" >> $PILLARFILE
|
||||||
echo " config:" >> $PILLARFILE
|
echo " config:" >> $PILLARFILE
|
||||||
echo " lb_procs: '$CORECOUNT'" >> $PILLARFILE
|
echo " node:" >> $PILLARFILE
|
||||||
|
echo " lb_procs: '$CORECOUNT'" >> $PILLARFILE
|
||||||
echo "suricata:" >> $PILLARFILE
|
echo "suricata:" >> $PILLARFILE
|
||||||
echo " config:" >> $PILLARFILE
|
echo " config:" >> $PILLARFILE
|
||||||
echo " af-packet:" >> $PILLARFILE
|
echo " af-packet:" >> $PILLARFILE
|
||||||
|
|||||||
@@ -6,6 +6,6 @@ pcap:
|
|||||||
blocks: 2048
|
blocks: 2048
|
||||||
preallocate_file_mb: 4096
|
preallocate_file_mb: 4096
|
||||||
aiops: 128
|
aiops: 128
|
||||||
stenopin: False
|
pin_to_cpu: False
|
||||||
stenopins: []
|
cpus_to_pin_to: []
|
||||||
disks: []
|
disks: []
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
pcap:
|
pcap:
|
||||||
enabled:
|
enabled:
|
||||||
description: Enable or Disable Stenographer on all sensors or a single sensor
|
description: Enable or Disable Stenographer on all sensors or a single sensor
|
||||||
config:
|
config:
|
||||||
maxdirectoryfiles:
|
maxdirectoryfiles:
|
||||||
description: The maximum number of packet/index files to create before deleting old files. The default is about 8 days regardless of free space.
|
description: The maximum number of packet/index files to create before deleting old files. The default is about 8 days regardless of free space.
|
||||||
@@ -18,7 +18,7 @@ pcap:
|
|||||||
pin_to_cpu:
|
pin_to_cpu:
|
||||||
description: Enable CPU pinning for PCAP.
|
description: Enable CPU pinning for PCAP.
|
||||||
cpus_to_pin_to:
|
cpus_to_pin_to:
|
||||||
description: CPU to pin PCAP to. Currently only a single SPU is supported
|
description: CPU to pin PCAP to. Currently only a single CPU is supported
|
||||||
disks:
|
disks:
|
||||||
description: List of disks to use for PCAP. This is currently not used.
|
description: List of disks to use for PCAP. This is currently not used.
|
||||||
advanced: True
|
advanced: True
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
{% import_yaml 'suricata/defaults.yaml' as suricata_defaults with context %}
|
|
||||||
{% set suricata_pillar = pillar.suricata %}
|
|
||||||
{% set surimerge = salt['defaults.merge'](suricata_defaults, suricata_pillar, in_place=False)
|
|
||||||
{% load_yaml as afpacket %}
|
|
||||||
af-packet:
|
|
||||||
- interface: {{ surimerge.suricata.config.af-packet.interface }}
|
|
||||||
cluster-id: {{ surimerge.suricata.config.af-packet.cluster-id }}
|
|
||||||
cluster-type: {{ surimerge.suricata.config.af-packet.cluster-type }}
|
|
||||||
defrag: {{ surimerge.suricata.config.af-packet.defrag }}
|
|
||||||
use-mmap: {{ surimerge.suricata.config.af-packet.use-mmap }}
|
|
||||||
threads: {{ surimerge.suricata.config.af-packet.threads }}
|
|
||||||
tpacket-v3: {{ surimerge.suricata.config.af-packet.tpacket-v3 }}
|
|
||||||
ring-size: {{ surimerge.suricata.config.af-packet.ring-size }}
|
|
||||||
{% endload %}
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
{% if salt['pillar.get']('sensor:suripins') %}
|
|
||||||
{% load_yaml as cpu_affinity%}
|
|
||||||
cpu-affinity:
|
|
||||||
- management-cpu-set:
|
|
||||||
cpu: [ {{ salt['pillar.get']('sensor:suripins')|join(",") }} ] # include only these cpus in affinity settings
|
|
||||||
- receive-cpu-set:
|
|
||||||
cpu: [ {{ salt['pillar.get']('sensor:suripins')|join(",") }} ] # include only these cpus in affinity settings
|
|
||||||
- worker-cpu-set:
|
|
||||||
cpu: [ {{ salt['pillar.get']('sensor:suripins')|join(",") }} ]
|
|
||||||
mode: "exclusive"
|
|
||||||
threads: {{ salt['pillar.get']('sensor:suripins')|length }}
|
|
||||||
prio:
|
|
||||||
default: "high"
|
|
||||||
{% endload %}
|
|
||||||
{% elif salt['pillar.get']('sensor:suriprocs') %}
|
|
||||||
{% load_yaml as cpu_affinity%}
|
|
||||||
cpu-affinity:
|
|
||||||
- management-cpu-set:
|
|
||||||
cpu: [ all ] # include only these CPUs in affinity settings
|
|
||||||
- receive-cpu-set:
|
|
||||||
cpu: [ all ] # include only these CPUs in affinity settings
|
|
||||||
- worker-cpu-set:
|
|
||||||
cpu: [ "all" ]
|
|
||||||
mode: "exclusive"
|
|
||||||
threads: {{ salt['pillar.get']('sensor:suriprocs') }}
|
|
||||||
prio:
|
|
||||||
low: [ 0 ]
|
|
||||||
medium: [ "1-2" ]
|
|
||||||
high: [ 3 ]
|
|
||||||
default: "high"
|
|
||||||
{% endload %}
|
|
||||||
{% endif %}
|
|
||||||
Reference in New Issue
Block a user