ansible-roles/roles/crowdsec/templates/parsers/s02-enrich/trusted_ip.yaml.j2
2021-12-01 19:13:34 +01:00

17 lines
349 B
Django/Jinja

name: fws/trusted_ip
description: "Whitelist events from trusted ip"
whitelist:
reason: "trusted ip"
ip:
{% for ip in trusted_ip | default([]) %}
{% if ip is not search('/\d+$') %}
- "{{ ip }}"
{% endif %}
{% endfor %}
cidr:
{% for ip in trusted_ip | default([]) %}
{% if ip is search('/\d+$') %}
- "{{ ip }}"
{% endif %}
{% endfor %}