Skip to content

Unban IP from Fail2ban

Jignesh (GreyCube Technologies) edited this page Jul 6, 2023 · 3 revisions

To list Jails

sudo fail2ban-client status

To see Banned IPs in each Jail

sudo fail2ban-client status nginx-proxy
sudo fail2ban-client status sshd

To unban an IP

sudo fail2ban-client set (jailname) unbanip 192.168.0.1
sudo fail2ban-client set nginx-proxy unbanip 192.168.0.1

To check nginx access log

sudo tail -100 /var/log/nginx/access.log
Clone this wiki locally