updated nftables state

This commit is contained in:
Paul 2022-01-02 18:13:44 +01:00
parent 32c6ad1ab0
commit 3c71f5def3

View File

@ -1,8 +1,8 @@
## {{ salt['pillar.get']('salt_managed', default='Salt Managed') }}
{% set blackips = salt["bl.get_ips"]() %}
{% set blackips = salt["bl.get_ips"]() -%}
{% if blackips|length > 0 %}
{%- if blackips|length > 0 -%}
define blacklist = { {{ blackips|join(", ") }} }
{% else %}
{%- else -%}
define blacklist = { 127.255.255.255 }
{% endif %}
{%- endif -%}