diff options
author | Alex Auvolat <alex@adnab.me> | 2020-06-30 17:31:12 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-07-15 16:03:51 +0200 |
commit | 65af077d5a046bfecd94ca0e203c61a2e214db2d (patch) | |
tree | 3d5d525161730d95609344cc738f0324771a7dc6 /ansible/roles/network | |
parent | d3ada90d83acdbdec38b89c1b039ff07878f5b7d (diff) | |
download | infrastructure-65af077d5a046bfecd94ca0e203c61a2e214db2d.tar.gz infrastructure-65af077d5a046bfecd94ca0e203c61a2e214db2d.zip |
Fix iptables not liking comment on same line
Diffstat (limited to 'ansible/roles/network')
-rw-r--r-- | ansible/roles/network/templates/rules.v4.j2 | 4 |
1 files 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 |