Also, you need both to be enabled: systemctl enable --now fail2ban.service systemctl enable --now firewalld.service systemctl restart firewalld.service