mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-08 18:22:47 +01:00
change how we populate local.zeek - https://github.com/Security-Onion-Solutions/securityonion-saltstack/issues/585
This commit is contained in:
@@ -16,7 +16,7 @@ zeek:
|
|||||||
CfgDir: /opt/zeek/etc
|
CfgDir: /opt/zeek/etc
|
||||||
CompressLogs: 1
|
CompressLogs: 1
|
||||||
local:
|
local:
|
||||||
load:
|
'@load':
|
||||||
- misc/loaded-scripts
|
- misc/loaded-scripts
|
||||||
- tuning/defaults
|
- tuning/defaults
|
||||||
- misc/capture-loss
|
- misc/capture-loss
|
||||||
@@ -48,7 +48,7 @@ zeek:
|
|||||||
- securityonion/bpfconf
|
- securityonion/bpfconf
|
||||||
- securityonion/communityid
|
- securityonion/communityid
|
||||||
- securityonion/file-extraction
|
- securityonion/file-extraction
|
||||||
load-sigs:
|
'@load-sigs':
|
||||||
- frameworks/signatures/detect-windows-shells
|
- frameworks/signatures/detect-windows-shells
|
||||||
redef:
|
redef:
|
||||||
- LogAscii::use_json = T;
|
- LogAscii::use_json = T;
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
##! Local site policy.
|
##! Local site policy.
|
||||||
|
|
||||||
{%- set ALLOWEDOPTIONS = [ 'load', 'load-sigs', 'redef' ] %}
|
{%- set ALLOWEDOPTIONS = [ '@load', '@load-sigs', 'redef' ] %}
|
||||||
|
|
||||||
{%- for k, v in LOCAL.items() %}
|
{%- for k, v in LOCAL.items() %}
|
||||||
{%- if k|lower in ALLOWEDOPTIONS %}
|
{%- if k|lower in ALLOWEDOPTIONS %}
|
||||||
{%- for li in v|sort %}
|
{%- for li in v|sort %}
|
||||||
@{{ k }} {{ li }}
|
{{ k }} {{ li }}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
Reference in New Issue
Block a user