mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 19:52:51 +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)$
|
regex: ^(ZEEK|SURICATA)$
|
||||||
regexFailureMessage: You must enter either ZEEK or SURICATA.
|
regexFailureMessage: You must enter either ZEEK or SURICATA.
|
||||||
global: True
|
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:
|
ids:
|
||||||
description: Which IDS engine to use. Currently only Suricata is supported.
|
description: Which IDS engine to use. Currently only Suricata is supported.
|
||||||
global: True
|
global: True
|
||||||
|
|||||||
@@ -99,7 +99,8 @@ function pcapspace() {
|
|||||||
"suricata:"\
|
"suricata:"\
|
||||||
" config:"\
|
" config:"\
|
||||||
" output:"\
|
" output:"\
|
||||||
" pcap-log: $s" >> $PILLARFILE
|
" pcap-log:"\
|
||||||
|
" max-files: $s" >> $PILLARFILE
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -24,12 +24,21 @@
|
|||||||
"statickeyauth": {
|
"statickeyauth": {
|
||||||
"apiKey": "{{ GLOBALS.sensoroni_key }}"
|
"apiKey": "{{ GLOBALS.sensoroni_key }}"
|
||||||
{%- if PCAPMERGED.enabled %}
|
{%- if PCAPMERGED.enabled %}
|
||||||
|
{%- if PCAPENGINE.steno %}
|
||||||
},
|
},
|
||||||
"stenoquery": {
|
"stenoquery": {
|
||||||
"executablePath": "/opt/sensoroni/scripts/stenoquery.sh",
|
"executablePath": "/opt/sensoroni/scripts/stenoquery.sh",
|
||||||
"pcapInputPath": "/nsm/pcap",
|
"pcapInputPath": "/nsm/pcap",
|
||||||
"pcapOutputPath": "/nsm/pcapout"
|
"pcapOutputPath": "/nsm/pcapout"
|
||||||
}
|
}
|
||||||
|
{%- elif PCAPENGINE.suri %}
|
||||||
|
},
|
||||||
|
"suriquery": {
|
||||||
|
"executablePath": "/opt/sensoroni/scripts/suriquery.sh",
|
||||||
|
"pcapInputPath": "/nsm/suripcap",
|
||||||
|
"pcapOutputPath": "/nsm/pcapout"
|
||||||
|
}
|
||||||
|
{%- endif %}
|
||||||
{%- else %}
|
{%- else %}
|
||||||
}
|
}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
@@ -155,8 +155,10 @@ suricata:
|
|||||||
helpLink: suricata.html
|
helpLink: suricata.html
|
||||||
pcap-log:
|
pcap-log:
|
||||||
enabled:
|
enabled:
|
||||||
description: Enable Suricata to collect PCAP.
|
description: This value is ignored by SO. pcapengine in globals takes predidence.
|
||||||
|
readonly: True
|
||||||
helpLink: suricata.html
|
helpLink: suricata.html
|
||||||
|
advanced: True
|
||||||
compression:
|
compression:
|
||||||
description: Enable compression of Suricata PCAP. Currently unsupported
|
description: Enable compression of Suricata PCAP. Currently unsupported
|
||||||
advanced: True
|
advanced: True
|
||||||
|
|||||||
Reference in New Issue
Block a user