diff --git a/harden b/harden index 4cb3416..797f254 100755 --- a/harden +++ b/harden @@ -563,6 +563,11 @@ if [[ -n "$OLD_PORTS" ]]; then esac done fi +if [[ "$currentFirewall" == "firewalld" ]]; then + sudo firewall-cmd --reload +else + sudo ufw reload +fi TOHERE cat << TOHERE | sudo tee -a /var/spool/cron/crontabs/root # Every 30 minutes check if there are any new ports used by docker and allow them in the firewall