Created
August 18, 2020 11:46
-
-
Save ngugijames/bf08e32ffabf164099686a46f59b6e2b to your computer and use it in GitHub Desktop.
Fail2Ban: Unban IP address from all jails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for jail in $(fail2ban-client status | grep 'Jail list:' | sed 's/.*Jail list://' | sed 's/,//g'); do fail2ban-client set $jail unbanip IP_ADDRESS_HERE; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment