Initial commit

This commit is contained in:
2023-11-19 19:06:52 +03:00
commit a13598acb6
9 changed files with 778 additions and 0 deletions

11
templates/ipset.j2 Normal file
View File

@@ -0,0 +1,11 @@
flush
create {{ whitelist_ip4_name }} hash:net maxelem 65536
{% for white_ip4 in whitelist_ip %}
add {{ whitelist_ip4_name }} {{ white_ip4 }}
{% endfor %}
create {{ whitelist_ip6_name }} hash:ip family inet6
{% for white_ip6 in whitelist_ip6 %}
add {{ whitelist_ip6_name }} {{ white_ip6 }}
{% endfor %}
{{ ansible_managed | comment }}