...
Table of Contents | ||
---|---|---|
|
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 | ||
---|---|---|
| ||
sudo apt-get install ipset |
On CentOS/Amazon-Linux you would do:
Code Block | ||
---|---|---|
| ||
sudo yum install ipset |
Configuration with clean jail.local and apache-custom filter
...