This article explains how firewalld works and shares some options to properly secure your server with firewalld.