feat(ufw): auto-open firewall ports after app installation

- cloudpanel: allow ftp, smtp, dns, http, https, smtps, imaps, pop3s, and admin panel ports
- coolify: allow http, https, and dashboard port after install
- pterodactyl: allow http, https, wings daemon (8080), and sftp (2022) ports
- uptime-kuma: allow app port on install
- proxmox: add open_firewall_ports() with ufw guard checks and new menu option [9]
This commit is contained in:
2026-05-12 17:46:31 -04:00
parent aba84b26f7
commit dda32051ac
8 changed files with 134 additions and 15 deletions
+14 -1
View File
@@ -283,7 +283,20 @@ install_cloudpanel() {
fi
echo -e "${GREEN}[✓] Installation completed${NC}"
ufw_allow 20/tcp "CloudPanel FTP data"
ufw_allow 21/tcp "CloudPanel FTP"
ufw_allow 25/tcp "CloudPanel SMTP"
ufw_allow 53/tcp "CloudPanel DNS (TCP)"
ufw_allow 53/udp "CloudPanel DNS (UDP)"
ufw_allow 80/tcp "CloudPanel HTTP"
ufw_allow 443/tcp "CloudPanel HTTPS"
ufw_allow 465/tcp "CloudPanel SMTPS"
ufw_allow 587/tcp "CloudPanel submission"
ufw_allow 993/tcp "CloudPanel IMAPS"
ufw_allow 995/tcp "CloudPanel POP3S"
ufw_allow "${PANEL_PORT}/tcp" "CloudPanel admin"
# Configure Basic Auth
configure_cloudpanel_basic_auth