You've already forked custom-firewall
chore: added banlist ipset list
This commit is contained in:
@@ -1,4 +1,12 @@
|
||||
flush
|
||||
create {{ banlist_ip4_name }} hash:net maxelem 65536
|
||||
{% for ban_ip4 in banlist_ip4 %}
|
||||
add {{ banlist_ip4_name }} {{ ban_ip4 }}
|
||||
{% endfor %}
|
||||
create {{ banlist_ip6_name }} hash:ip family inet6
|
||||
{% for ban_ip6 in banlist_ip6 %}
|
||||
add {{ banlist_ip6_name }} {{ ban_ip6 }}
|
||||
{% endfor %}
|
||||
create {{ whitelist_ip4_name }} hash:net maxelem 65536
|
||||
{% for white_ip4 in whitelist_ip4 %}
|
||||
add {{ whitelist_ip4_name }} {{ white_ip4 }}
|
||||
|
||||
Reference in New Issue
Block a user