Skip to content

Instantly share code, notes, and snippets.

@filipeandre
Last active August 5, 2024 11:02
Show Gist options
  • Save filipeandre/4b1206a3d334e02aec90a015c83a72f7 to your computer and use it in GitHub Desktop.
Save filipeandre/4b1206a3d334e02aec90a015c83a72f7 to your computer and use it in GitHub Desktop.
Fail2ban usefull Aliases
sudo zgrep 'Ban' /var/log/fail2ban.log*
if [ -z "$1" ]; then
echo "Usage: $0 <IP_ADDRESS>"
exit 1
fi
IP_ADDRESS=$1
sudo fail2ban-client set sshd unbanip "$IP_ADDRESS"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment