--- bantime: "604800" maxretry: "4" findtime: "604800" jails: - name: sshd enabled: true port: ['22'] filter: sshd logpath: "%(sshd_log)s" backend: "%(sshd_backend)s" # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # EXAMPLE # bantime: "604800" # maxretry: "4" # findtime: "604800" # jails: #- name: NAME-FILTER(list -> /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(list -> /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(list -> /etc/fail2ban/action.d/somefilenameaction) # action: "%(action_mwl)s" # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # 31536000 ; year # 18144000 ; 30days # 604800 ; 1 week # 86400 ; 1 day # 3600 ; 1 hour # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++