-
亚马逊是否计划将mov_evasive添加到其最新的AMI?
-
如何在Amazon Linux上安装mod_evasive?网上有很多教程可供使用,但我没有找到最近的教程来解决亚马逊Linux问题 .
-
亚马逊是否有关于如何保护EC2实例免受DDoS攻击的建议?如果亚马逊可以通过使用开源防火墙和mod_security和mod_evasive等Apache模块来提供有关如何保护运行Apache和WordPress的EC2实例的某些指导,我真的很感激 .
我尝试安装:
sudo yum --enablerepo=epel install mod_evasive
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00
amzn-updates | 2.5 kB 00:00
1034 packages excluded due to repository priority protections
Resolving Dependencies
--> Running transaction check
---> Package mod_evasive.x86_64 0:1.10.1-10.el6 will be installed
--> Processing Dependency: httpd-mmn = 20051115 for package: mod_evasive-1.10.1-10.el6.x86_64
--> Running transaction check
---> Package httpd.x86_64 0:2.2.34-1.16.amzn1 will be installed
--> Processing Dependency: httpd-tools = 2.2.34-1.16.amzn1 for package: httpd-2.2.34-1.16.amzn1.x86_64
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.34-1.16.amzn1.x86_64
--> Running transaction check
---> Package apr-util-ldap.x86_64 0:1.5.4-6.18.amzn1 will be installed
---> Package httpd-tools.x86_64 0:2.2.34-1.16.amzn1 will be installed
--> Processing Conflict: httpd24-2.4.27-3.75.amzn1.x86_64 conflicts httpd < 2.4.27
--> Processing Conflict: httpd24-tools-2.4.27-3.75.amzn1.x86_64 conflicts httpd-tools < 2.4.27
--> Finished Dependency Resolution
Error: httpd24-tools conflicts with httpd-tools-2.2.34-1.16.amzn1.x86_64
Error: httpd24 conflicts with httpd-2.2.34-1.16.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
rpm -qa 'httpd*'
httpd24-tools-2.4.27-3.75.amzn1.x86_64
httpd24-2.4.27-3.75.amzn1.x86_64
如何修复Amazon ami linux上的这个问题?
3 回答
如果您正在运行Apache 2.4,请尝试yum install mod24_ssl.x86_64
我从这个网址修复了这个问题https://github.com/shivaas/mod_evasive
将此文件https://raw.githubusercontent.com/shivaas/mod_evasive/master/mod_evasive24.c下载到您的服务器
运行$ APACHE_ROOT / bin / apxs -i -a -c mod_evasive24.c
该模块将构建并安装到$ APACHE_ROOT / modules中,并加载到您的httpd.conf中
重启Apache
也许在安装mod_evasive24之前需要安装一些软件:httpd24-dev,libtool,python-devel
感谢后续行动,Erkin;这非常有帮助!
另外两个提示:
要使用
apxs
,您需要安装httpd24-devel
,如https://stackoverflow.com/a/37528944/1776044中所述 .This helpful comment建议修改
mod_evasive
(test.pl
)的测试脚本,以防它返回所有HTTP 400:第13行:
print $SOCKET "GET /?$_ HTTP/1.0\r\nHost: 127.0.0.1\r\n\r\n";