OPNsense.rules 834 Bytes
Newer Older
1 2 3 4 5 6
# AUTO GENERATED, DO NOT EDIT.
#
# OPNsense.rules
# User defined rules
#

7 8 9
# -- User defined rules
{% if helpers.exists('OPNsense.IDS.userDefinedRules.rule') %}
{%      for rule in helpers.toList('OPNsense.IDS.userDefinedRules.rule') %}
10
{%          if rule.enabled|default('0') == '1' %}
11 12
{{rule.action}}{% if rule.fingerprint|default('') != ""
      %} tls {% else %} ip {% endif %} any any -> any any (msg:"{{rule.description.replace('"','\"')}}"; {%
13 14 15 16 17 18
      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
      %} sid:{{
      4294967295 - loop.index
      }}; rev:1;)
19
{%          endif %}
20 21
{%      endfor %}
{% endif %}