From 9c7a403ade57108969b0a567a08e2b6bc773d73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=83rcziem=20=E2=84=A2?= <118485377+spalencsar@users.noreply.github.com> Date: Mon, 6 Oct 2025 11:22:29 +0200 Subject: [PATCH] Make firewall review command distribution-specific (ufw for Ubuntu/Debian, firewall-cmd for Fedora/openSUSE) --- setup.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index c47a1e7..a264eb5 100644 --- a/setup.sh +++ b/setup.sh @@ -759,7 +759,17 @@ EOF echo " 1. Reboot the system to ensure all changes take effect" echo " 2. Access your NAS via SSH on port ${SSH_PORT:-$DEFAULT_SSH_PORT}" echo " 3. Configure file shares through Samba" - echo " 4. Review firewall rules with: sudo ufw status" + case $DISTRO in + ubuntu|debian) + echo " 4. Review firewall rules with: sudo ufw status" + ;; + fedora|opensuse) + echo " 4. Review firewall rules with: sudo firewall-cmd --list-all" + ;; + *) + echo " 4. Review firewall rules (check system documentation for your firewall tool)" + ;; + esac echo " 5. Check the services summary file: cat ${summary_file}" echo log_warning "Important: Please save the following information:"