Skip to content

Instantly share code, notes, and snippets.

@Neolot
Last active August 20, 2022 17:37
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 Neolot/902095bee38329de4dc27822c77172fc to your computer and use it in GitHub Desktop.
Save Neolot/902095bee38329de4dc27822c77172fc to your computer and use it in GitHub Desktop.
fail2ban - Check IP and unban
// Check banned IP
sudo zgrep '<IP>' /var/log/fail2ban.log*
// Unban IP
sudo fail2ban-client set <jail_name> unbanip <IP>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment