Basic Linux Server Security Tutorial

How to Secure Linux Servers

Basic Linux Server Security

Install Firewall (APF or CSF Firewall with BFD)
ModSecurity (Web application firewall)
ModEvasive (Prevent DDOS attacks)
Harden SSH server
Fix Open DNS Recursion
Install RKhunter
Install ClamAV (Antivirus)
XInet Servers Hardening (Disable Telnet/Finger or unwanted services)
Securing PHP
PortsEntry (tool to detect portscans)
Harden host.conf (against IP spoofing)
Check User Uploaded files
Secure /tmp Folders (noexec, nosuid)

This tutorial guide covers only basic linux server security tips intended for linux learners. I am writing this guide assuming that you are running Centos 5 or later versions.

Full article: see here

Similar Posts:


Balakrishnan Prabhu

Mr. Balakrishnan Prabhu is the founder of Corpocrat magazine. He is also the founder of Best Citizenships (BC), assisting wealthy individuals with with global citizenship and residency programs in Europe. His other interests are Linux, Machine learning, Wordpress, etc. You can contact him here

  • thanks for such a great guide, its really is helpful

  • simo

    for a newbie a its a fantastic guide, many thanks

  • David

    Really appreciate this guide. I just got my first dedicated server and this really helped to secure it. Cheers.

  • dedes

    please explain further for installing portsentry. to fix error while compiling make linux…
    thanks ^_^

  • Mark

    Great article, as above, just got my dedicated server, the support i got was not great.

  • aka

    “To run antivirus
    clamav -r /home”
    I think “clamscan -r /home” will be better 😉