Skip to content
Bash script to manipulate fail2ban client to unban IP's properly, en masse.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


f2b-nuke is a bash script to manipulate fail2ban-client to unban IP's properly, en masse. Interactive script.. no args

This script assumes the following:
You have fail2ban, wc, grep, cat and bash installed.
It also assumes that you are running with a non-root user with sudo privileges.


Place in your home directory
Make executable with: chmod +x
Run with: ./


Currently tested to work with ubuntu 14.04, 16.04 and fail2ban v0.9.3, v0.9.6


This script will create a folder (and ip list files within), in your user's home directory. Prompts ensure you are happy with this. You do not need to run script with sudo; script will run required commands with sudo; you might be prompted for sudo password.

You can’t perform that action at this time.