Commit 21418708 authored by Ad Schellevis's avatar Ad Schellevis

(ids) template, switch proto on selection

parent 7bcf39f0
......@@ -8,7 +8,8 @@
{% if helpers.exists('OPNsense.IDS.userDefinedRules.rule') %}
{% for rule in helpers.toList('OPNsense.IDS.userDefinedRules.rule') %}
{% if rule.enabled|default('0') == '1' %}
{{rule.action}} tls any any -> any any (msg:"{{rule.description.replace('"','\"')}}"; {%
{{rule.action}}{% if rule.fingerprint|default('') != ""
%} tls {% else %} ip {% endif %} any any -> any any (msg:"{{rule.description.replace('"','\"')}}"; {%
if rule.fingerprint|default('') != "" %} tls.fingerprint:"{{rule.fingerprint.lower()}}";{% endif
%}{%
if rule.geoip|default('') != ""%} geoip:{% if rule.geoip_direction|default('') != '' %}{{rule.geoip_direction}},{% endif %}{{rule.geoip}} ;{% 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