Browse Source

Update jail.local

FusionPBX 8 years ago
parent
commit
d7273a3f5a
1 changed files with 13 additions and 2 deletions
  1. 13 2
      debian/resources/fail2ban/jail.local

+ 13 - 2
debian/resources/fail2ban/jail.local

@@ -89,6 +89,18 @@ maxretry = 10
 findtime = 600
 findtime = 600
 bantime  = 600
 bantime  = 600
 
 
+[fusionpbx-invalid-mac]
+enabled  = true
+port     = 80,443
+protocol = tcp
+filter   = fusionpbx
+logpath  = /var/log/syslog.log
+action   = iptables-multiport[name=fusionpbx, port="http,https", protocol=tcp]
+#          sendmail-whois[name=fusionpbx, dest=root, [email protected]] #no smtp server installed
+maxretry = 3
+findtime = 600
+bantime  = -1
+
 [nginx-404]
 [nginx-404]
 enabled  = true
 enabled  = true
 port     = 80,443
 port     = 80,443
@@ -102,12 +114,11 @@ maxretry = 120
 [nginx-dos]
 [nginx-dos]
 # Based on apache-badbots but a simple IP check (any IP requesting more than
 # Based on apache-badbots but a simple IP check (any IP requesting more than
 # 240 pages in 60 seconds, or 4p/s average, is suspicious)
 # 240 pages in 60 seconds, or 4p/s average, is suspicious)
-# Block for two full days.
 enabled  = true
 enabled  = true
 port     = 80,443
 port     = 80,443
 protocol = tcp
 protocol = tcp
 filter   = nginx-dos
 filter   = nginx-dos
 logpath  = /var/log/nginx/access*.log
 logpath  = /var/log/nginx/access*.log
 findtime = 60
 findtime = 60
-bantime  = 172800
+bantime  = -1
 maxretry = 240
 maxretry = 240