Very important aspect of your web server security : the firewall. Most of web servers are using iptables to control what is going in and out. And it’s pretty easy to use.

Here is my basic configuration (you can also find it on Github) :