/alcasar.sh |
---|
1707,13 → 1707,7 |
*/18 * * * * root $DIR_DEST_BIN/alcasar-daemon.sh > /dev/null 2>&1 |
EOF |
cat << EOF > /etc/cron.d/alcasar-update-categories |
# update malware categories every 12 hours |
* 0-23/12 * * * rsync -rv rsync://ftp.ut-capitole.fr/blacklist/dest/malware /etc/dansguardian/lists/blacklists/malware |
EOF |
chown apache:apache /etc/cron.d/alcasar-update-categories |
# removing the users crons |
rm -f /var/spool/cron/* |
} # End cron |
/scripts/alcasar-iptables.sh |
---|
439,7 → 439,6 |
# On autorise les requêtes RSYNC sortantes (maj BL de Toulouse) |
# RSYNC requests are allowed (to update BL of Toulouse) |
$IPTABLES -A OUTPUT -o $EXTIF -p tcp --dport rsync -j NETFLOW |
$IPTABLES -A OUTPUT -o $EXTIF -p tcp --dport rsync -j ACCEPT |
# On autorise les requêtes FTP |
/web/acc/admin/bl_filter.php |
---|
235,20 → 235,9 |
{ |
$line=str_replace('chk-','',$key)."\n"; |
fwrite($pointeur,$line); |
if(trim($line) == 'malware') |
{ |
$cron_malware = 1; |
$fichier=fopen($cron_apache,"w+"); |
fputs($fichier, "# update malware categories every 12 hours\n"); |
fputs($fichier, "* 0-23/12 * * * rsync -rv rsync://ftp.ut-capitole.fr/blacklist/dest/malware /etc/dansguardian/lists/blacklists/malware\n"); |
} |
} |
} |
if(!$cron_malware) |
{ |
$fichier=fopen($cron_apache,"w+"); |
fputs($fichier, "# malware updates disabled\n"); |
} |
fclose($pointeur); |
} |