aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/network/templates/rules.v4.j2
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-05-21 15:27:09 +0200
committerAlex Auvolat <alex@adnab.me>2020-07-15 16:03:33 +0200
commita4f9aa2d9830e9fdc3504a6d2842359ee4ab38f0 (patch)
tree3be24e19f8b7a88f36d49870b13f220a178b8f9f /ansible/roles/network/templates/rules.v4.j2
parent1a16fc7f9e54760cc09f676f0176b71654e32117 (diff)
downloadinfrastructure-a4f9aa2d9830e9fdc3504a6d2842359ee4ab38f0.tar.gz
infrastructure-a4f9aa2d9830e9fdc3504a6d2842359ee4ab38f0.zip
Set up wireguard in dev cluster
Diffstat (limited to 'ansible/roles/network/templates/rules.v4.j2')
-rw-r--r--ansible/roles/network/templates/rules.v4.j24
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 a446139..ef2cf64 100644
--- a/ansible/roles/network/templates/rules.v4.j2
+++ b/ansible/roles/network/templates/rules.v4.j2
@@ -10,8 +10,8 @@
-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'] }} -j ACCEPT
--A INPUT -s {{ hostvars[selected_host]['private_ip'] }} -j ACCEPT
+-A INPUT -s {{ hostvars[selected_host]['public_ip'] }} -p udp --dport 51820 -j ACCEPT
+-A INPUT -s {{ hostvars[selected_host]['vpn_ip'] }} -j ACCEPT
{% endfor %}
# Local