From c4b984aec1dfee9b6e3673e7ec39a7eacaaaeb61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Mikl=C3=B3s=20T=C3=B3th?= <mikewashere@sch.bme.hu>
Date: Wed, 7 Jul 2021 18:58:42 +0000
Subject: [PATCH] IPv6 addresses != IPv4 addresses

---
 templates/etc/iptables/rules.v6 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/etc/iptables/rules.v6 b/templates/etc/iptables/rules.v6
index 13d1fc8..d9f515f 100644
--- a/templates/etc/iptables/rules.v6
+++ b/templates/etc/iptables/rules.v6
@@ -20,12 +20,12 @@
 
 -A INPUT -p tcp -m tcp --dport {{ ssh.port }} -m conntrack --ctstate NEW -m limit --limit 10 -j ACCEPT
 
-{% if iptables_forward_custom is defined %}
+{% if ip6tables_forward_custom is defined %}
 ##############################################################################
 ### FORWARD
 ##############################################################################
 
-{{ iptables_forward_custom }}
+{{ ip6tables_forward_custom }}
 {% endif %}
 
 ##############################################################################
@@ -38,7 +38,7 @@
 ################################################################################
 ### SERVICES
 ################################################################################
-{% for entry in iptables_input %}
+{% for entry in ip6tables_input %}
 -A INPUT -p {{ entry.protocol|default("tcp", true) }}{% if entry.source is defined %} --src {{ entry.source }}{% endif %} --dport {{ entry.port }} {% if entry.protocol == "tcp"%} -m conntrack --ctstate NEW {% endif %} {% if entry.comment is defined %} -m comment --comment "{{ entry.comment }}" {% endif %} -j ACCEPT
 {% endfor %}
 
-- 
GitLab