Even after setting up a new server with minimum configuration, there is still a further process that’s needed. Some necessary steps are highly crucial for the smooth function of a new server. For ensuring the smooth transition of CentOS into Malware Analysis Server it is highly recommended to go through the proper procedure as mentioned below.
Before starting with the actual process, it is necessary to run the CentOS initial server setup guide. This is mandatory to set up required user accounts and lock down SSH to maintain security measures. Once you are done with the guide, you can move ahead with the actual process of conversion. In this, we will primarily be focusing on recommended components that need to be configured. This process covers setting up the system for a firewall, configuring Network Time Protocol Synchronization (NTPS), and swapping of file.
Configuration of Basic Firewall
Setting up a firewall ensures primary level security for your server. These applications perform the functioning of blocking traffic for every single port on your server along with the provided exceptions. CentOs mounts with a popular firewall named firewalld. You can use firewall-cmd for configuring your firewall policies. This will help to lock down all that we don’t want to keep open.
Command for Firewalld Installation
sudo yum install firewalld
Firewalld service provides the feature of conducting modifications without any connection disconnect. One can turn it back to on mode right before creating exceptions.
Command for Turning On Firewalld
sudosystemctl start firewalld
Once the service is in running mode, we can make use of firewall-cmd to set the policy information for the selected firewall. The application uses the terminology called “zones” for labeling the genuine hosts on a network.
When the firewall gets reloaded it moves into the default zone. In this situation, we need to add exceptions for approved services on the firewall. Out of all, SSH is most essential for retaining remote administrative access. In case you haven’t done the modification to the port, SSH daemon will be in running state which gets enabled by typing
Command for Enabling SSH Daemon
sudo firewall-cmd –permanent –add-service=ssh
If you have a plan to run HTTP web server, there is need to turn it on”
Command for Turning on HTTO Web Server
sudo firewall-cmd –permanent –add-service=http
In case you want to enable SMTP email, type
Command for Enabling SMPT Email
sudo firewall-cmd –permanent –add-service=smtp
Once you are done with all and ready to process with changes, reload your firewall
Command for Reloading Firewall
sudo firewall-cmd –reload
After the configuration of the firewall, in the next step, we need to manage the localization setting for the selected server and configuration of Network Time Protocol (NTP). In this, the first ensures that server functioning with the correct time zone. In the second step, the system gets synchronized and its system clock gets set with the global network standard time.
Command for Checking available timezones
After typing this, a list of timezones wills popup which is available for your server. You can set the preferred timezone by typing
Command for SettingTimezone
sudotimedatectl set-timezone region/timezone
Configuring NTP Synchronization
After the proper setting of the timezone, we need to configure NTP. This is necessary to ensure our computer remain sync with other servers.
Command for NTP Synchronization
sudo yum install ntp
The server will correct its system clock as per the global servers.
What to Do Next?
Once you execute the above processes, you get the descent setup for your Linux server. Onwards, you can take the screenshot of your present configuration. If you are happy with your present configuration and ready to utilize the same for further installation, you can go ahead with the snapshot of your server with the help of the DigitalOcean control panel.
Additional Resources and Further Process
From here onwards, it completely depends on your strategy what you want to do with your server. Here are some of the general steps chosen by most of the users for next:
Setting up a LEMP (Linux, Nginx, MySQL/MariaDB, PHP) stack
Installing the WordPress CMS