vi /usr/local/apache2/conf/httpd.conf 加载下列模块 LoadModule unique_id_module modules/mod_unique_id.so LoadModule security2_module modules/mod_security2.so 添加一行: Include conf/modsecurity/*.conf 保存。 cd /usr/local/src/modsecurity-apache_2.1.3/rules # mkdir /usr/local/apache2/conf/modsecurity # cp *.conf /usr/local/apache2/conf/modsecurity/ 根据你的需要,You may want to edit and customize modsecurity_crs_10_config.conf. Additionally you may want to edit modsecurity_crs_30_http_policy.conf which enforces an application specific HTTP protocol usage. 重启apache
19、Iptables规则 vi /usr/local/sbin/fw.sh 将以下脚本命令粘贴到 fw.sh 文件中。
#!/bin/bash # Stop iptables service first service iptables stop # Load FTP Kernel modules /sbin/modprobe ip_conntrack_ftp