Is there a checklist for setting up a secure, optimised server?

Posted March 5, 2014 4k views
Looking for a guide that will give the bare minimum of what I would need to install to have a server up and running, secure and optimised for hosting my sites Also the best order in which to install. such as lamp, firewall etc.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers
Iptables is a must.
(This tut will also work on debian and ubuntu)
No passwords for the ssh login, use private RSA keys!
There is no specific thing as it is all option steps you take yourself:

for me I would go for this list:
1- securing ssh and hardening and use only SSH key to access WS
2- disabling root login
3- using iptables
4- port knocking
5- Fail2ban "you need to be very careful with that, otherwise, you will find yourself locked out"
6- using Intrusion Detection System

and possibly the most important thing to protect the server itself is using mod_security for either Apache or Nginx

and many others.....

you can find the list here:
by Justin Ellingwood
Linux security is a complex task with many different variables to consider. In this guide, we will attempt to give you a good introduction to how to secure your Linux server. We will discuss high-level concepts and areas to keep an eye on, with links to more specific advice.
Thanks guys. You given me something to work with.

Pretty new to this always had managed vps's before, so just want to make sure I can at least do the minimum to get up and running and secure.

Any further suggestions always welcome.