Add Globals

This commit is contained in:
Mike Reeves
2024-01-29 15:22:20 -05:00
parent 5b05aec96a
commit 0c969312e2
5 changed files with 22 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
global:
pcapengine: STENO

View File

@@ -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

View File

@@ -99,7 +99,8 @@ function pcapspace() {
"suricata:"\ "suricata:"\
" config:"\ " config:"\
" output:"\ " output:"\
" pcap-log: $s" >> $PILLARFILE " pcap-log:"\
" max-files: $s" >> $PILLARFILE
} }

View File

@@ -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 %}

View File

@@ -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