iptables / staging: fix the actual used template

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2023-08-15 12:11:22 -07:00
parent a14b081ab3
commit 363af73e57

View file

@ -14,11 +14,9 @@
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
-A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
# if the blocked_ips is defined - drop them # if the host is external, block some ips
{% if blocked_ips is defined %} {% if external == 'true' %}
{% for ip in blocked_ips %} -A INPUT -p all -m set --match-set blocklist src -j REJECT
-A INPUT -s {{ ip }} -j DROP
{% endfor %}
{% endif %} {% endif %}
# allow ssh - always # allow ssh - always