add config option for global filters

This commit is contained in:
Tim Herren
2021-09-20 17:12:30 +02:00
parent 2740f421be
commit 0e2762ca6e
2 changed files with 9 additions and 0 deletions

View File

@@ -21,5 +21,8 @@
{% if rule.type == 'executable' %}
-a {{ rule.action }} -F exe={{ rule.executable }}{% if rule.filters is defined %}{% for filter in rule.filters %} -F {{ filter }}{% endfor %}{% endif %} -S execve -k {{ rule.comment }}
{% endif %}
{% if rule.type == 'global_filter' %}
-a {{ rule.action }}{% if rule.filters is defined %}{% for filter in rule.filters %} -F {{ filter }}{% endfor %}{% endif %}
{% endif %}
{% endfor %}
{% endif %}