From 683faadea040448fa90b194875696ffcb08baa91 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com>
Date: Fri, 16 Jul 2021 08:42:43 +0200
Subject: [PATCH] [add] authorize Plesk Webhooks outgoing calls

---
 templates/iptables.conf.j2 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/templates/iptables.conf.j2 b/templates/iptables.conf.j2
index dc4fd2b..06c2f75 100644
--- a/templates/iptables.conf.j2
+++ b/templates/iptables.conf.j2
@@ -79,6 +79,10 @@
 # WEB
 -A OUTPUT -p tcp -m tcp --dport 80 -j ACCEPT
 -A OUTPUT -p tcp -m tcp --dport 443 -j ACCEPT
+{% if inventory_hostname in groups.gitlab %}
+# Plesk WebHooks
+-A OUTPUT -p tcp -m tcp --dport 8443 -j ACCEPT
+{% endif %}
 # DNS
 -A OUTPUT -p tcp -m tcp --dport 53 -j ACCEPT
 -A OUTPUT -p udp -m udp --dport 53 -j ACCEPT
-- 
GitLab