Commit 6701e632 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(ids) add enabled flag to template

(cherry picked from commit 551289a5)
parent fc110d02
......@@ -7,6 +7,8 @@
# -- SSL fingerprint rules
{% if helpers.exists('OPNsense.IDS.rules.fingerprint') %}
{% for rule in helpers.toList('OPNsense.IDS.rules.fingerprint') %}
{% if rule.enabled|default('0') == '1' %}
{{rule.action}} tls any any -> any any (msg:"{{rule.description.replace('"','\"')}}"; tls.fingerprint:"{{rule.fingerprint.lower()}}"; sid:{{4294967295 - loop.index}}; rev:1;)
{% endif %}
{% endfor %}
{% endif %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment