

A tool called firewall-cmd can be used to configure your firewall policies. CentOS ships with a firewall called firewalld.

These applications are responsible for denying traffic to every port on your server with exceptions for ports/services you have approved. Configuring a Basic Firewallįirewalls provide a basic level of security for your server. This will involve setting our system up with a firewall and a swap file, and configuring Network Time Protocol synchronization. In this guide, we will be focusing on configuring some optional but recommended components. Once you have completed the guide above, you can continue with this article. This is necessary in order to set up your user accounts, configure privilege elevation with sudo, and lock down SSH for security. Prerequisites and Goalsīefore you start this guide, you should run through the CentOS 7 initial server setup guide.

In this guide, we’ll continue the configuration of our servers by tackling some recommended, but optional procedures. After setting up the bare minimum configuration for a new server, there are some additional steps that are highly recommended in most cases.
