Linoxide published a tutorial about configure the firewall with FirewallD.
How to Configure Firewall with FirewallD
This tutorial shows how to configure Firewalld on Linux and its basic concepts. Firewalld is a firewall management tool which acts as a front-end for the Linux kernel's netfilter framework.