Browse Source

Merge pull request #711 from ifaist0s/f2b-recidive-chain

F2b recidive chain
Kristan Kenney 6 years ago
parent
commit
b0ff7c0f91
2 changed files with 2 additions and 1 deletions
  1. 1 0
      bin/v-add-firewall-chain
  2. 1 1
      install/deb/fail2ban/jail.local

+ 1 - 0
bin/v-add-firewall-chain

@@ -62,6 +62,7 @@ case $chain in
     WEB)        port='80,443'; protocol=TCP  ;;
     DB)         port='3306,5432'; protocol=TCP  ;;
     HESTIA)     port=$hestiaport; protocol=TCP  ;;
+    RECIDIVE)   port='1:65535'; protocol=TCP  ;;
     *)          check_args '2' "$#" 'CHAIN PORT' ;;
 esac
 

+ 1 - 1
install/deb/fail2ban/jail.local

@@ -48,7 +48,7 @@ maxretry = 5
 [recidive]
 enabled  = true
 filter   = recidive
-action   = hestia[name=HESTIA]
+action   = hestia[name=RECIDIVE]
 logpath  = /var/log/fail2ban.log
 maxretry = 5
 findtime = 86400