mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-07 01:32:47 +01:00
Add Globals
This commit is contained in:
2
salt/global/defaults.yaml
Normal file
2
salt/global/defaults.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
global:
|
||||
pcapengine: STENO
|
||||
@@ -14,6 +14,11 @@ global:
|
||||
regex: ^(ZEEK|SURICATA)$
|
||||
regexFailureMessage: You must enter either ZEEK or SURICATA.
|
||||
global: True
|
||||
pcapengine:
|
||||
description: What engine to use for generating pcap. Options are STENO and SURICATA.
|
||||
regex: ^(STENO|SURICATA)$
|
||||
regexFailureMessage: You must enter either STENO or SURICATA.
|
||||
global: True
|
||||
ids:
|
||||
description: Which IDS engine to use. Currently only Suricata is supported.
|
||||
global: True
|
||||
|
||||
@@ -99,7 +99,8 @@ function pcapspace() {
|
||||
"suricata:"\
|
||||
" config:"\
|
||||
" output:"\
|
||||
" pcap-log: $s" >> $PILLARFILE
|
||||
" pcap-log:"\
|
||||
" max-files: $s" >> $PILLARFILE
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -24,12 +24,21 @@
|
||||
"statickeyauth": {
|
||||
"apiKey": "{{ GLOBALS.sensoroni_key }}"
|
||||
{%- if PCAPMERGED.enabled %}
|
||||
{%- if PCAPENGINE.steno %}
|
||||
},
|
||||
"stenoquery": {
|
||||
"executablePath": "/opt/sensoroni/scripts/stenoquery.sh",
|
||||
"pcapInputPath": "/nsm/pcap",
|
||||
"pcapOutputPath": "/nsm/pcapout"
|
||||
}
|
||||
{%- elif PCAPENGINE.suri %}
|
||||
},
|
||||
"suriquery": {
|
||||
"executablePath": "/opt/sensoroni/scripts/suriquery.sh",
|
||||
"pcapInputPath": "/nsm/suripcap",
|
||||
"pcapOutputPath": "/nsm/pcapout"
|
||||
}
|
||||
{%- endif %}
|
||||
{%- else %}
|
||||
}
|
||||
{%- endif %}
|
||||
|
||||
@@ -155,8 +155,10 @@ suricata:
|
||||
helpLink: suricata.html
|
||||
pcap-log:
|
||||
enabled:
|
||||
description: Enable Suricata to collect PCAP.
|
||||
description: This value is ignored by SO. pcapengine in globals takes predidence.
|
||||
readonly: True
|
||||
helpLink: suricata.html
|
||||
advanced: True
|
||||
compression:
|
||||
description: Enable compression of Suricata PCAP. Currently unsupported
|
||||
advanced: True
|
||||
|
||||
Reference in New Issue
Block a user