How to set up a firewall using FirewallD on CentOS 8

In CentOS 8 nftables replaces iptables as the default Linux network packet filtering framework. This page shows how to set up a firewall for your CentOS 8 and manage with the help of firewall-cmd (firewalld frontend) admin tool to secure your server