https://seanelvidge.com/unblock-ip-address-from-connecting-via-ssh/
sudo iptables -L --line-numbers
sudo iptables -D f2b-sshd 2
(number 2 means the second item under f2b-sshd, change it accordingly)
sudo iptables-save
---
Check banned IPs in a jail
sudo fail2ban-client status sshd
Status for the jail: sshd
|- Filter
| `- Currently failed: 2
|- Actions
| `- Currently banned: 1
| `- 192.168.0.100
To unban an IP (e.g.,
192.168.0.100
) from the sshd
jail:sudo fail2ban-client set sshd unbanip 192.168.0.100
No comments:
Post a Comment