1.查看fail2ban状态:
fail2ban-client status
执行结果:
1.查看被Ban的IP:
fail2ban-client status sshd
执行结果:
2.解除被Ban的IP
fail2ban-client set sshd unbanip 49.5.129.247
执行结果:
3.查看结果:
fail2ban-client status sshd
fail2ban-client status
执行结果:
fail2ban-client status sshd
执行结果:
fail2ban-client set sshd unbanip 49.5.129.247
执行结果:
fail2ban-client status sshd