Skip to content

Fail2ban

Get global service status

sudo fail2ban client status

Get jail status

sudo fail2ban client status [JAIL]

Unban IP address

sudo fail2ban-client set [JAIL] unbanip [IP]

Get list of banned IPs with time

sudo fail2ban-client get [JAIL] banip --with-time