Skip to content

Instantly share code, notes, and snippets.

@ngugijames
Created August 18, 2020 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ngugijames/bf08e32ffabf164099686a46f59b6e2b to your computer and use it in GitHub Desktop.
Save ngugijames/bf08e32ffabf164099686a46f59b6e2b to your computer and use it in GitHub Desktop.
Fail2Ban: Unban IP address from all jails
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