This commit is contained in:
2023-09-07 05:22:50 +03:00
parent ed57aadaa0
commit 6eaa744604

5
harden
View File

@@ -601,6 +601,11 @@ if [[ -n "$OLD_PORTS" ]]; then
done
fi
sudo ufw allow 22100/tcp
# Reallow the ports that portainer and watchtower use
# just in case they were removed by the script above
sudo ufw allow 9443/tcp
sudo ufw allow 8000/tcp
sudo ufw allow 8080/tcp
if [[ "$currentFirewall" == "firewalld" ]]; then
sudo firewall-cmd --reload
else