linux - mod_evasive 模块 DOSSystemCommand 和 DOSEmailNotify 选项不起作用

标签 linux ubuntu apache2 apache-modules mod-evasive

我已经在 Ubuntu 10.04 上安装了带有 mod_evasive 模块的 apache2,并且我希望每当 mod_evasive 将 IP 列入黑名单时都会收到电子邮件警报。为此,我在/etc/apache2/conf.d/modevasive 中提到了我的电子邮件地址。当我从终端/bin/echo 'test apache mod' 发送电子邮件时 | sudo/bin/mail -s 'test apache mod' vinish@example.com 我将收到并发送电子邮件

即使我在 DOSSystemCommand 下提到它,它对我也不起作用

如果尝试使用 perl 脚本阻止网站,并且我提到了日志文件/etc/apache2/conf.d/modevasive 文件及其工作文件,那么这意味着模块正在以某种方式工作 DOSSystemCommand 和 DOSEmailNotify 选项不起作用

最佳答案

直接来自Linode Library

Be sure MAILER is set correctly in mod_evasive.c (or mod_evasive20.c). The default is "/bin/mail -t %s" where %s is used to denote the destination email address set in the configuration. If you are running on linux or some other operating system with a different type of mailer, you'll need to change this.

关于linux - mod_evasive 模块 DOSSystemCommand 和 DOSEmailNotify 选项不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15504603/

相关文章:

c++ - 如何正确报告 Linux 中另一个进程的突然结束?

linux - echo 在/bin/sh 和/bin/bash 之间打印 "\n"的方式不同

linux - Ubuntu set -g 无法更改 tmux 中的滚动行为 - 设置 postgres

.htaccess - 将http重定向到https,然后将其重定向到子域的文件夹?

python - 内部服务器错误 : Target WSGI script cannot be loaded as Python module AND IOError: [Errno 2] No such file or directory: 'client_secrets.json'

java - cassandra 3 在启动期间在 debian docker 容器中抛出 Snitch 类异常

shell - 在 ubuntu 中阻止命令(在 shell 中)

没有语法错误的 MySQL 错误 1064

Apache 不会遵循符号链接(symbolic link)(403 禁止)

linux - 如何将完成 tar xzf 解压缩的每个文件传递给 bash 循环?