fail2ban

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