diff --git a/roles/base/templates/iptables/ip6tables b/roles/base/templates/iptables/ip6tables index add78a738a..778599abc7 100644 --- a/roles/base/templates/iptables/ip6tables +++ b/roles/base/templates/iptables/ip6tables @@ -18,8 +18,8 @@ -A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT # if the blocked_ips is defined - drop them -{% if blocked_ips is defined %} -{% for ip in blocked_ips %} +{% if blocked_ip_v6 is defined %} +{% for ip in blocked_ip_v6 %} -A INPUT -s {{ ip }} -j DROP {% endfor %} {% endif %} diff --git a/roles/base/templates/iptables/ip6tables.jenkins.fedorainfracloud.org b/roles/base/templates/iptables/ip6tables.jenkins.fedorainfracloud.org index 92be2a5297..fb29487026 100644 --- a/roles/base/templates/iptables/ip6tables.jenkins.fedorainfracloud.org +++ b/roles/base/templates/iptables/ip6tables.jenkins.fedorainfracloud.org @@ -33,8 +33,8 @@ COMMIT -A INPUT -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 blocked_ips is defined %} +# if the blocked_ip_v6 is defined - drop them +{% if blocked_ip_v6 is defined %} {% for ip in blocked_ips %} -A INPUT -s {{ ip }} -j DROP {% endfor %}