From 6ae8556d15652f5662866e0f1e2927259695e676 Mon Sep 17 00:00:00 2001 From: Cyril Jaquier Date: Tue, 12 Jul 2005 13:06:25 +0000 Subject: [PATCH] - Added mail notification support - Added CIDR mask support in ignoreip git-svn-id: https://fail2ban.svn.sourceforge.net/svnroot/fail2ban/branches/FAIL2BAN-0_5@129 a942ae1a-1317-0410-a47c-b1dcaea8d605 --- config/fail2ban.conf.default | 63 +++++++++++++++++++++++++++++++++--- 1 file changed, 59 insertions(+), 4 deletions(-) diff --git a/config/fail2ban.conf.default b/config/fail2ban.conf.default index a1c0e070..f64fddf5 100644 --- a/config/fail2ban.conf.default +++ b/config/fail2ban.conf.default @@ -42,11 +42,12 @@ maxretry = 3 bantime = 600 # Option: ignoreip -# Notes.: space separated list of IP's to be ignored by fail2ban -# Example: ignoreip = 192.168.0.1 123.45.235.65 -# Values: IP Default: +# Notes.: space separated list of IP's to be ignored by fail2ban. +# You can use CIDR mask in order to specify a range. +# Example: ignoreip = 192.168.0.1/24 123.45.235.65 +# Values: IP Default: 192.168.0.0/24 # -ignoreip = +ignoreip = 192.168.0.0/24 # Option: cmdstart # Notes.: command executed once at the start of Fail2Ban @@ -66,6 +67,60 @@ cmdend = # polltime = 1 +[MAIL] +# Option: enabled +# Notes.: enable mail notification when banning an IP address. +# Values: [true | false] Default: false +# +enabled = false + +# Option: host +# Notes.: host running the mail server. +# Values: STR Default: localhost +# +host = localhost + +# Option: port +# Notes.: port of the mail server. +# Values: INT Default: 25 +# +port = 25 + +# Option: from +# Notes.: e-mail address of the sender. +# Values: MAIL Default: fail2ban +# +from = fail2ban + +# Option: to +# Notes.: e-mail address of the receiver. +# Values: MAIL Default: root +# +to = root + +# Option: subject +# Notes.: subject of the e-mail. +# Tags: IP address +# number of failures +# unix timestamp of the last failure +# Values: TEXT Default: [Fail2Ban] Banned +# +subject = [Fail2Ban] Banned + +# Option: message +# Notes.: message of the e-mail. +# Tags: IP address +# number of failures +# unix timestamp of the last failure +#
new line +# Values: TEXT Default: +# +message = Hi,
+ The IP has just been banned by Fail2Ban after + attempts.
+ Regards,
+ Fail2Ban + # You can define a new section for each log file to check for # password failure. Each section has to define the following # options: logfile, fwban, fwunban, timeregex, timepattern,