Installing an up-to-date Fail2Ban (Debian/Ubuntu)
The F2B version available via apt for Debian/Ubuntu is old and does not support IP6 (as at the time of this document being written). So let's grab a newer version from the source at github.
Note: Only versions 0.10+ offer IP6 support.
-
Switch to your home directory or somewhere you can work with downloaded files.
-
Get the latest version of Fail2Ban, switch to the created directory and install it using the python installer script.
-
Let's test the installation by running fail2ban-client. If it displays the help screen, then things are probably set up properly.
-
Now, let's configure systemd to load fail2ban automatically on system start-up.
-
Let's go ahead and start the service to make sure it doesn't run into any problems. You should not see any errors reported and should have a pleasant 'green dot' showing up.
-
--full --no-pager means display everything and wrap output so it isn't cut off and we can actually read it!
-
One more test just to be sure everything is set up. You should see f2b report it's version without any errors being generated.
That's it! Fail2Ban is set up and running on your system. Now we have to apply our configuration.