In order to protect your server against common attacks, it is recommended that you setup a firewall. The following instructions assume that you have installed firewalld.
$ vi /etc/firewalld/zones/public.xml
Insert the following lines between the <zone> and </zone> tags: