Check jail status
fail2ban-client status
eg;
1
2
3
4
5
6
7
8
9
10
remote fail2ban # fail2ban-client status nextcloud
Status for the jail: nextcloud
|- filter
| |- File list: /home/nextcloud/data/nextcloud.log
| |- Currently failed: 0
| `- Total failed: 0
`- action
|- Currently banned: 0
| `- IP list:
`- Total banned: 0
unban IP from jail
fail2ban-client set nextcloud unbanip
eg;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
remote fail2ban # fail2ban-client status nextcloud
Status for the jail: nextcloud
|- filter
| |- File list: /home/nextcloud/data/nextcloud.log
| |- Currently failed: 0
| `- Total failed: 3
`- action
|- Currently banned: 1
| `- IP list: 21.17.43.19
`- Total banned: 1
remote fail2ban # fail2ban-client set nextcloud unbanip 21.17.43.19
217.147.243.129
remote fail2ban # fail2ban-client status nextcloud
Status for the jail: nextcloud
|- filter
| |- File list: /home/nextcloud/data/nextcloud.log
| |- Currently failed: 0
| `- Total failed: 3
`- action
|- Currently banned: 0
| `- IP list:
`- Total banned: 1
Remove IP from blocklist
check its being blocked by running
iptables -L -n
if it is, unblock it by running
iptables -D
where