实验环境:RHEL7.4
官网地址:http://www.safedog.cn/
[root@Yang ~]# vim /etc/selinux/config --修正如下
SELINUX=disabled
[root@Yang ~]# reboot ---重启生效
[root@Yang ~]# iptables -F
[root@Yang ~]# wget http://download.safedog.cn/safedog_linux64.tar.gz ---下载软件包
[root@Yang ~]# yum install httpd php -y ---快速安装LAP
[root@Yang ~]# tar -xf safedog_linux64.tar.gz
[root@Yang ~]# cd safedog_an_linux64_2.8.20384/
[root@Yang safedog_an_linux64_2.8.20384]# yum install mlocate psmisc lsof -y
[root@Yang safedog_an_linux64_2.8.20384]# ./install.py
extracting files ...
Warning: Web defense module will restart web process during installation!!:
Web defense module select: 1.apache 2.nginx . Input(Ctrl-C to skip web defense module installation): 1 ---选择1
step 1/3, start install common lib [ok]
step 2/3, start Install Server Defense Module
step 2.1, checking os release version... [ok]
step 2.2, installing file... [ok]
step 2.3, start service... [ok]
step 2.4, save safedog install info...
Tips:
(1)safedog install directory: /etc/safedog
(2)install safedog version: 2.8.20384
install safedog completely
step 3/3, start install Apache Defense Module..
step 3.1, start install Apache Defend Module...
step 3.2, copy libraries [ok]
step 3.3, copy bin [ok]
step 3.4, Install apache defense module succeed.. [ok]
step 3.5, restart the apache server..send command to server ok.
[ok]
Tips:
(1)If you want to change the configuration of apache defense module, please modify the files in /etc/safedog/apache/conf;
(2)If you want to check apache defense module log, please use command: sdalog;
(3)If apache defense module is failed to use, you can try to restart Apache service.
Installation is complete!
此时安装成功
开启网站漏洞主动防护[root@Yang ~]# vim /etc/safedog/apache/conf/WPCDefSql.conf
ChkSqlAttackStatus=1 ---默认是1 参数解释是否开启防注入功能:1 开启,0 关闭
开启网马防护[root@Yang ~]# vim /etc/safedog/apache/conf/WPCDefTrojan.conf
ChkTrojan=1 --开启防护
ChkWTBrowsyFile=1 ---是否浏览防御功能:1 为开启
网站资源防盗链
[root@Yang ~]# vim /etc/safedog/apache/conf/WPCLinkGate.conf
ChkLinkGate=1 ---开启防盗链
常用关于safedog的命令
service safedog status 查看安全狗做事;
service safedog start 启动安全狗做事;
service safedog stop 停滞安全狗做事
sdstart重启安全狗做事。
本日给大家就分享到这里,更多的内容请参考官网供应的详细文档,干系文档的参考文档我都已经准备好了。如果你须要,请私信softdog获取更多内容,当然你也可以从官网进行下载干系资料,感激大家