aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2020-05-23 17:13:32 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2020-05-23 17:13:32 +0200
commit7c984ae02b7502305af0eced8b4b47732483e790 (patch)
tree83a4c68ee2ced7e9a2a1e3e2a926e08902646590 /ansible/roles
parent2f62cd580f797e943772d61efc6ebbe459849b0e (diff)
downloadinfrastructure-7c984ae02b7502305af0eced8b4b47732483e790.tar.gz
infrastructure-7c984ae02b7502305af0eced8b4b47732483e790.zip
Add router in the list
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/network/templates/rules.v4.j211
1 files changed, 4 insertions, 7 deletions
diff --git a/ansible/roles/network/templates/rules.v4.j2 b/ansible/roles/network/templates/rules.v4.j2
index b60d1ee..cb935e8 100644
--- a/ansible/roles/network/templates/rules.v4.j2
+++ b/ansible/roles/network/templates/rules.v4.j2
@@ -32,13 +32,12 @@
-A INPUT -p tcp --dport 80 -j ACCEPT
-A INPUT -p tcp --dport 443 -j ACCEPT
-# Coturn
--A INPUT -p tcp --dport 3478 -j ACCEPT
--A INPUT -p udp --dport 3478 -j ACCEPT
--A INPUT -p tcp --dport 3479 -j ACCEPT
--A INPUT -p udp --dport 3479 -j ACCEPT
+# Jitsi
+-A INPUT -p tcp --dport 8080 -j ACCEPT
+-A INPUT -p udp --dport 10000 -j ACCEPT
# Cluster
+-A INPUT -s 192.168.1.254 -j ACCEPT # router
{% 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
@@ -48,9 +47,7 @@
-A INPUT -s 82.253.205.190 -j ACCEPT
-A INPUT -i docker0 -j ACCEPT
-
-A INPUT -s 127.0.0.1/8 -j ACCEPT
-
-A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
COMMIT