Knowledgebase
mod_evasive neither does send mail nore write to log file
Posted by maroonhost, 03-30-2010, 07:18 PM | I've just installed mode_evasive and configed the httpd.conf and tested that it is working greate
but it doesn't send any mail to the defiened mail address
and it also doesn't write any log file of banned ips
I tested that and I could be able to be banned so that it bann ips and work without any problem but it is unable to send mail and print write to defiened log files
pelase help
thanks
|
Posted by Sileep Kumar M S, 03-31-2010, 02:57 AM | You need to specify the log file and email id as follows:
DOSEmailNotify you@yourdomain.com
DOSSystemCommand "/etc/apf/apf -d %s'"
DOSLogDir "/var/log/mod_evasive"
|
Posted by maroonhost, 03-31-2010, 04:48 AM | please read my post alitle carefuly
I assigned ip adress and also log file directory but no email no log
|
Posted by Sileep Kumar M S, 03-31-2010, 04:52 AM | Then check the log file permission/ownership, also check the mail logs for any mail to your email ID.
|
Posted by maroonhost, 03-31-2010, 04:56 AM | rw-r--r-- 1 root root 1 Mar 30 13:56 evasivelog
and no email is recieved with that email
|
Posted by Sileep Kumar M S, 03-31-2010, 05:20 AM | Please make sure that /bin/mail is installed, if not install it using 'yum install mailx'. Regarding the log file, change the ownership to apache user and try again.
|
Posted by bvsonline, 04-30-2010, 01:21 AM | mod_evasive also supports the following three advanced directives:
DOSEmailNotify
DOSSystemCommand
DOSLogDir
The DOSEmailNotify is certain useful, where you can set mod_evasive to send a notification email whenever a possible DOS attack is detected and blocked. For example, “DOSEmailNotify root” will send the email to root user. But note that mailer configuration (by default is “/bin/mail -t %s”) in mod_evasive.c or mod_evasive20.c is correct.
|
|
Add to Favourites
Print this Article |
Also Read
ECUI down (Views: 666)