# Fail2Ban configuration file # # Author: Cyril Jaquier # # $Revision: 254 $ # [Definition] # Option: fwstart # Notes.: command executed once at the start of Fail2Ban. # Values: CMD Default: # actionstart = echo -en "Hi,\n The jail has been started successfuly.\n Regards,\n Fail2Ban"|mail -s "[Fail2Ban] : started" # Option: fwend # Notes.: command executed once at the end of Fail2Ban # Values: CMD Default: # actionstop = echo -en "Hi,\n The jail has been stopped.\n Regards,\n Fail2Ban"|mail -s "[Fail2Ban] : stopped" # Option: fwcheck # Notes.: command executed once before each fwban command # Values: CMD Default: # actioncheck = # Option: fwban # Notes.: command executed when banning an IP. Take care that the # command is executed with Fail2Ban user rights. # Tags: IP address # number of failures # unix timestamp of the last failure # unix timestamp of the ban time # Values: CMD # Default: iptables -I INPUT 1 -s -j DROP # actionban = echo -en "Hi,\n The IP has just been banned by Fail2Ban after attempts against
.\n Regards,\n Fail2Ban"|mail -s "[Fail2Ban] : banned " # Option: fwunban # Notes.: command executed when unbanning an IP. Take care that the # command is executed with Fail2Ban user rights. # Tags: IP address # unix timestamp of the ban time # unix timestamp of the unban time # Values: CMD # Default: iptables -D INPUT -s -j DROP # actionunban = [Init] # Defaut name of the chain # name = default # Destinataire of the mail # dest = root