7 basic steps to secure your Linux server

3 min read This tutorial will introduce you to basic Linux server security. While it focuses on Debian/Ubuntu, you can apply everything presented here to other Linux distributions. I also encourage you to research this material and extend it where applicable. 1. Update your server The first thing you should do to secure your server is to update the local repositories and upgrade the operating system and installed applications by applying the latest patches. On Ubuntu and Debian: On Fedora, CentOS, or RHEL: 2. Create a new privileged user account Next, create a new user account. You should never log into your server…

Servercheap Centos7 Fail2Ban

INSTALL FAIL2BAN ON CENTOS 7

3 min read To install Fail2Ban on CentOS 7, we will have to install EPEL (Extra Packages for Enterprise Linux) repository first. EPEL contains additional packages for all CentOS versions, one of these additional packages is Fail2Ban. The following commands must be executed after switching to the root user. yum install epel-release yum install fail2ban fail2ban-systemd If you have SELinux installed, then update the SELinux policies: yum update -y selinux-policy* Configure settings for Fail2Ban Once installed, we will have to configure and customize the software with a jail.local configuration file. The jail.local file overrides the jail.conf file and is used to make your…