Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
minLevel3

Guide

Installing fail2ban and ipset

Let's now install fail2ban on our server.  It's in most (if not all) distro package managers.

...

NOTE: this assumes you have the required python packages installed, as outlined here.We'll also need ipset installed.  See my guide here for directions on doing this.

Next, we're going to install ipset to manage the blocking on ip addresses.

On Debian/Ubuntu we can do:

Code Block
languagebash
sudo apt-get install ipset

On CentOS/Amazon-Linux you would do:

Code Block
languagebash
sudo yum install ipset

Configuration with clean jail.local and apache-custom filter

...