fail2ban

Last edit

Summary: g

Changed:

< fail2ban-client status ssh-iptables

to

> fail2ban-client status sshd

Changed:

< fail2ban-client set ssh-iptables banip 47.54.168.212

to

> fail2ban-client set sshd banip 47.54.168.212

Changed:

< * Then for each jail, say the jail is "ssh-iptables-alt" do
< fail2ban-client set ssh-iptables unbanip 47.54.168.212

to

> * Then for each jail, say the jail is "sshd" do
> fail2ban-client set sshd unbanip 47.54.168.212


Whitelist

is the "ignoreip" list in /etc/fail2ban/jail.conf

Test a Filter

 fail2ban-regex -v /var/log/httpd_access /etc/fail2ban/filter.d/oddmuse.conf

Reload filters

 fail2ban-client reload

Status

Get the list of jails:

 fail2ban-client status
 fail2ban-client status sshd

Ban an IP

 fail2ban-client set sshd banip 47.54.168.212

Unban an IP

 fail2ban-client set sshd unbanip 47.54.168.212