From 65af077d5a046bfecd94ca0e203c61a2e214db2d Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 30 Jun 2020 17:31:12 +0200 Subject: Fix iptables not liking comment on same line --- ansible/roles/network/templates/rules.v4.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible/roles/network/templates/rules.v4.j2 b/ansible/roles/network/templates/rules.v4.j2 index 69f7a09..1814025 100644 --- a/ansible/roles/network/templates/rules.v4.j2 +++ b/ansible/roles/network/templates/rules.v4.j2 @@ -7,8 +7,6 @@ -A INPUT -p tcp --dport 22 -j ACCEPT # Cluster --A INPUT -s 192.168.1.254 -j ACCEPT --A INPUT -s 82.253.205.190 -j ACCEPT {% for selected_host in groups['cluster_nodes'] %} -A INPUT -s {{ hostvars[selected_host]['public_ip'] }} -p udp --dport 51820 -j ACCEPT -A INPUT -s {{ hostvars[selected_host]['vpn_ip'] }} -j ACCEPT @@ -21,6 +19,8 @@ # Rennes -A INPUT -s 93.2.173.168 -j ACCEPT -A INPUT -s 82.253.205.190 -j ACCEPT +# router +-A INPUT -s 192.168.1.254 -j ACCEPT -A INPUT -i docker0 -j ACCEPT -A INPUT -s 127.0.0.1/8 -j ACCEPT -- cgit v1.2.3