17 lines
349 B
Plaintext
Raw Normal View History

2021-12-01 19:13:34 +01:00
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 %}