View file File name : jail.local Content :#fail2ban local settings #These settings override the settings in jail.conf [bot-shells] logpath = /var/log/apache2/apache2-*.mega.log maxretry = 5 filter = bot-shells action = iptables-allports failcentral-dreamhost enabled = true [xmlrpc] enabled = true maxretry = 150 logpath = /var/log/apache2/apache2-*.mega.log filter = xmlrpc action = iptables-allports failcentral-dreamhost [sasl] maxretry = 50 action = iptables-allports filter = postfix-sasl port = smtp,ssmtp enabled = false logpath = /var/log/mail.log [DEFAULT] backend = polling maxretry = 50 ignoreip = 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 64.90.32.0/19 64.111.96.0/19 66.33.192.0/19 67.205.0.0/18 69.163.128.0/17 75.119.192.0/19 107.180.224.0/19 173.236.128.0/17 205.196.208.0/20 208.97.128.0/18 208.113.128.0/17 173.245.48.0/20 103.21.244.0/22 103.22.200.0/22 103.31.4.0/22 141.101.64.0/18 108.162.192.0/18 190.93.240.0/20 188.114.96.0/20 197.234.240.0/22 198.41.128.0/17 162.158.0.0/15 104.16.0.0/12 172.64.0.0/13 131.0.72.0/22 122.248.245.244/32 54.217.201.243/32 54.232.116.4/32 192.0.80.0/20 192.0.96.0/20 192.0.112.0/20 195.234.108.0/22 192.0.96.202/32 192.0.98.138/32 192.0.102.71/32 192.0.102.95/32 187.143.97.53 90.247.131.190 39.37.138.39 106.167.163.193 bantime = 3600 [sshd_root] filter = sshd_root logpath = /var/log/auth.log action = iptables-allports failcentral-dreamhost maxretry = 2 bantime = 3600 enabled = true [418] maxretry = 25 enabled = true action = iptables-allports failcentral-dreamhost filter = 418 logpath = /var/log/apache2/apache2-*.mega.log [wp] filter = wp action = iptables-allports failcentral-dreamhost logpath = /var/log/apache2/apache2-*.mega.log enabled = true maxretry = 4 [proftpd] logpath = /var/log/auth.log filter = proftpd enabled = true maxretry = 50 action = iptables-allports failcentral-dreamhost [ssh] action = iptables-allports failcentral-dreamhost port = ssh logpath = /var/log/auth.log filter = sshd bantime = 3600 enabled = true maxretry = 25