Last active
August 20, 2022 17:37
-
-
Save Neolot/902095bee38329de4dc27822c77172fc to your computer and use it in GitHub Desktop.
fail2ban - Check IP and unban
This file contains hidden or 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
// 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