parent
7bf5081950
commit
4c1acbd1eb
4 changed files with 99 additions and 0 deletions
@ -0,0 +1,3 @@ |
|||||||
|
url: {{ crowdsec_lapi_url }} |
||||||
|
login: {{ crowdsec_lapi_user }} |
||||||
|
password: {{ crowdsec_lapi_pass }} |
@ -0,0 +1,16 @@ |
|||||||
|
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 %} |
Loading…
Reference in new issue