cd /usr/src
rm -rf /usr/src/comodo*
DOwnload
https://docs.google.com/uc?export=download&id=0B_Z7t7PO4imFMU1mVG52c3VGM0k
tar xvzf comodobr.tar.gz
cp -pa comodo/cwaf_catalog.cgi /usr/local/cpanel/whostmgr/cgi
cp -pa comodo/addon_cwaf.cgi /usr/local/cpanel/whostmgr/cgi
cp -pa comodo/cwaf /usr/local/cpanel/whostmgr/cgi
cp -pa comodo/cwaf_sharedlib.pl /usr/local/cpanel/whostmgr/cgi
cp -pa comodo/addon_cwaf.conf /var/cpanel/apps
cp -pa comodo/cwaf_var/cwaf /var/cpanel
cp -pa comodo/perl5 /opt/cpanel/
/usr/local/cpanel/bin/register_appconfig /var/cpanel/apps/addon_cwaf.conf
rm -rf /var/cpanel/cwaf/rules/modsec_nagios.conf
mv /usr/local/apache/conf/modsec2.conf /usr/local/apache/conf/modsec2.conf.$(date +%d-%m-%y)
rm -rf modsec2.conf
Download and update
https://docs.google.com/uc?export=download&id=0B_Z7t7PO4imFSEI5WDFWTHg4eGs
yes | mv /usr/local/apache/conf/modsec2.user.conf /usr/local/apache/conf/modsec2.user.conf.`date +%h-%d-%y-%s`
DOwnload
https://docs.google.com/uc?export=download&id=0B_Z7t7PO4imFdnFSMTZMWEFsNzA
chmod 600 /usr/local/apache/conf/modsec2.user.conf
sed -i '/^.*modsec2_asl.conf/s/^/#/g' /usr/local/apache/conf/modsec2.user.conf
mkdir /var/log/CWAF
touch /var/log/CWAF/utils.log
cp modsec2.conf /usr/local/apache/conf/
chown root. /usr/local/apache/conf/modsec2.conf
chmod 600 /usr/local/apache/conf/modsec2.conf
/etc/init.d/httpd graceful
/var/cpanel/cwaf/scripts/update-client.pl
Comments
Post a Comment