# Fail2Ban configuration file # # Author: Nick Munger # Modified by: Cyril Jaquier # # $Revision: 254 $ # [Definition] # Option: fwstart # Notes.: command executed once at the start of Fail2Ban. # Values: CMD # actionstart = # Option: fwend # Notes.: command executed once at the end of Fail2Ban # Values: CMD # actionstop = # Option: fwcheck # Notes.: command executed once before each fwban command # Values: CMD # 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 # actionban = ipfw add deny tcp from to # 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 # actionunban = ipfw delete `ipfw list | grep -i | awk '{print $1;}'` [Init] # Option: port # Notes.: specifies port to monitor # Values: [ NUM | STRING ] # port = ssh # Option: localhost # Notes.: the local IP address of the network interface # Values: IP # localhost = 127.0.0.1