From 6715a03f1ea8a4ed5bce4fd3ea7572fdada56ae5 Mon Sep 17 00:00:00 2001 From: Fanch Date: Fri, 13 Dec 2024 17:21:25 +0100 Subject: [PATCH] conf sympa --- dockers/sympa/reload.sh | 3 +++ dockers/sympa/updateFirewall.sh | 2 ++ 2 files changed, 5 insertions(+) diff --git a/dockers/sympa/reload.sh b/dockers/sympa/reload.sh index 1d77d79..55f8ee8 100755 --- a/dockers/sympa/reload.sh +++ b/dockers/sympa/reload.sh @@ -8,3 +8,6 @@ for i in eMailShrinker filter.sh filterTest.sh; do done #Correction des droits sur le filter.sh docker exec sympaServ chmod a+rx /home/filter/filter.sh /home/filter/filterTest.sh + +# limitation du filter.sh +docker exec -it sympaServ bash -c "cp /home/filter/config/filter-20241109.sh /home/filter/filter.sh" diff --git a/dockers/sympa/updateFirewall.sh b/dockers/sympa/updateFirewall.sh index 8a45b83..5097581 100755 --- a/dockers/sympa/updateFirewall.sh +++ b/dockers/sympa/updateFirewall.sh @@ -11,6 +11,8 @@ iptables -t nat -N ipbis iptables -t nat -F ipbis iptables -t nat -I ipbis -o ens18 -p tcp --source `docker inspect -f '{{.NetworkSettings.Networks.sympaNet.IPAddress}}' sympaServ` -j SNAT --to `ifconfig ens18:0 | grep "inet" | awk '{print $2}'` iptables -t nat -I ipbis -o ens18 -p tcp --source `docker inspect -f '{{.NetworkSettings.Networks.jirafeauNet.IPAddress}}' sympaServ` -j SNAT --to `ifconfig ens18:0 | grep "inet" | awk '{print $2}'` +#add by fab mais non testé 'assque chu pas fou ! +#iptables -t nat -I ipbis -o ens18 -p tcp --source `docker inspect -f '{{.NetworkSettings.Networks.apikazNet.IPAddress}}' sympaServ` -j SNAT --to `ifconfig ens18:0 | grep "inet" | awk '{print $2}'` iptables -t nat -A ipbis -j RETURN iptables -t nat -D POSTROUTING -o ens18 -j ipbis iptables -t nat -I POSTROUTING -o ens18 -j ipbis