Alan Orth
0605f70f2e
This is active banning of IPs that are brute forcing login attempts to SSH, versus the passive banning of 10,000 abusive IPs from the abuseipdb.com blacklist. For now I am banning IPs that fail to log in successfully more than twelve times in a one-hour period, but these settings might change, and I can override them at the group and host level if needed. Currently this works for CentOS 7, Ubuntu 16.04, and Ubuntu 18.04, with minor differences in the systemd configuration due to older versions on some distributions. You can see the status of the jail like this: # fail2ban-client status sshd Status for the jail: sshd |- Filter | |- Currently failed: 0 | |- Total failed: 0 | `- Journal matches: _SYSTEMD_UNIT=sshd.service + _COMM=sshd `- Actions |- Currently banned: 1 |- Total banned: 1 `- Banned IP list: 106.13.112.20 You can unban IPs like this: # fail2ban-client set sshd unbanip 106.13.112.20 |
||
---|---|---|
.. | ||
etc | ||
ip6tables.j2 | ||
iptables.j2 | ||
public.xml.j2 | ||
rc.local_Ubuntu.j2 | ||
security.sources.list.j2 | ||
sources.list.j2 | ||
sshd_config_Debian-9.j2 | ||
sshd_config_Debian-10.j2 | ||
sshd_config_Ubuntu-16.04.j2 | ||
sshd_config_Ubuntu-18.04.j2 | ||
sysctl_Debian.j2 | ||
sysctl_Ubuntu.j2 | ||
tarsnap_sources.list.j2 |