--- bantime: "604800" maxretry: "4" findtime: "604800" jails: - name: sshd enabled: true filter: sshd logpath: /var/log/auth.log port: ['ssh', '22'] maxretry: 4 bantime: 604800 findtime: 604800 action: "%(action_mwl)s" # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # EXAMPLE # bantime: "604800" # maxretry: "4" # findtime: "604800" # jails: #- name: NAME-FILTER(/etc/fail2ban/filter.d/somefilenamefilter) - (first JAIL SSH) # enabled: true # filter: somefilenamefilter # logpath: /var/log/logofserviceauths # port: ['nameofservice', 'PORTNUMBEROFSERVICE'] # maxretry: 4 # max retry to auth # bantime: 604800 # 1week bantime in seconds # findtime: 604800 # 1week time finding source-host auth # action: "%(action_mwl)s" #- name: NAME-FILTER(/etc/fail2ban/filter.d/somefilenamefilter) - (second JAIL otherService) # enabled: true # filter: somefilenamefilter # logpath: /var/log/logofserviceauths # port: ['nameofservice', 'PORTNUMBEROFSERVICE'] # maxretry: 4 # max retry to auth # bantime: 604800 # 1week bantime in seconds # findtime: 604800 # 1week time finding source-host auth # banaction: NAME-ACTION(/etc/fail2ban/action.d/somefilenameaction) # action: "%(action_mwl)s" # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # 31536000 ; year # 18144000 ; 30days # 604800 ; 1 week # 86400 ; 1 day # 3600 ; 1 hour # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++