centos 7.9 no firewalld available code example
Example: install firewall-cmd centos 7
sudo yum install firewalld
sudo systemctl enable firewalld
sudo reboot
sudo yum install firewalld
sudo systemctl enable firewalld
sudo reboot