Fail2ban – ban, unban and display banned IP addresses
To show the list of banned IPs with Fail2ban, you have to know the name of the jail you want to show the blocked IPs’. To display the active jails type:
# fail2ban-client status
Now select the required jail to show the banned IPs
# fail2ban-client status <JAIL-NAME>
For example to show banned IPs in abc jail type:
# fail2ban-client status abc
If you want to manually unban an IP:
# fail2ban-client set <JAIL-NAME> unbanip <IP-ADDRESS>
If you want to manually ban an IP:
# fail2ban-client set <JAIL-NAME> banip <IP-ADDRESS>