Commit 551289a5 authored by Ad Schellevis's avatar Ad Schellevis

(ids) add enabled flag to template

parent 6ee8eb78
......@@ -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