Fail2Ban

wallFail2ban protects a server against attacks by detecting in the logs abnormal behaviors and setting up a firewall rule to disconnect the remote host.

Install

Protect the server against brute force attacks by cutting connections from hosts trying to much bad passwords

Change some default behaviors

* Change bantime from 600 to 3600 at least (ban for 1h instead of just 10 minutes)
* Change enabled to true for all the apache parts

Commands

See the status of fail2ban

For each item of the Jail list, you can see the status this part

To list the IPs blocked for a particular jail

To suppress the line number 5 (and authorize the IP back)