On CentOS 8, the default firewall is firewalld, which is used to manage iptables rules on the server. To enable and start the firewalld service on the server, run the following commands.
# systemctl enable firewalld # systemctl start firewalld # systemctl status firewalld