Changeset 71
- Timestamp:
- 03/22/09 12:09:31 (4 years ago)
- Files:
-
- 2 added
- 1 deleted
- 1 edited
-
bin/qtp-extraclam (modified) (3 diffs)
-
etc/cron.hourly/UpdateSaneSecurity.sh (deleted)
-
etc/cron.hourly/unofficial-clamav-sigs.sh (added)
-
etc/unofficial-clamav-sigs.conf (added)
Legend:
- Unmodified
- Added
- Removed
-
bin/qtp-extraclam
r3 r71 1 1 #!/bin/sh 2 2 3 # Written by Jake Vickers (jake@ v2gnu.com) on 10/10/074 # Installs UpdateSaneSecurity into your /etc/cron.hourly dir to add additionaldefs3 # Written by Jake Vickers (jake@qmailtoaster.com) on 03/22/09 4 # Installs an hourly cron script that will download additional virus defs 5 5 # for ClamAV to help fight spam. The script waits a random amount of time, then 6 # downloads the newest defs if there are any - it also drops your firewall to7 # accomplish this, saving your current rules to /tmp/temp_firewall. After it's done8 # downloading the new defs, it restores your firewall and restarts the clamav6 # downloads the newest defs if there are any. You will need to open port 873 (rsync) 7 # to accomplish this. You may open outgoing only if you track RELATED in your firewall. 8 # After it's done, it restores your firewall and restarts the clamav 9 9 # daemon using the new qmail-clam control script also provided in QTP. 10 10 11 HOURLYCRON=/etc/cron.hourly/ UpdateSaneSecurity.sh11 HOURLYCRON=/etc/cron.hourly/unofficial-clamav-sigs.sh 12 12 qtp=/opt/qmailtoaster-plus 13 13 cron_loc=/etc/cron.hourly … … 23 23 echo "written by Sane Security. The script will run hourly, then wait a" 24 24 echo "random number of seconds (min 30, max 600 to keep from hammering their servers)" 25 echo "before lowering your firewall to download the latest defs. Once it is done, it" 26 echo "will restore your firewall rules and restart the clamav daemon using the qmail-clam" 27 echo "script also provided in QTP." 25 echo "before downloading the latest defs. Once it is done, it will restart the clamav" 26 echo "daemon using the qmail-clam script also provided in QTP." 28 27 echo "" 29 28 echo "Hit enter to continue" … … 33 32 echo "" 34 33 35 echo "Installing UpdateSaneSecurityas an hourly cron job."36 cp $qtp/etc/cron.hourly/ UpdateSaneSecurity.sh $cron_loc/34 echo "Installing unofficial-clamav-sigs.sh as an hourly cron job." 35 cp $qtp/etc/cron.hourly/unofficial-clamav-sigs.sh $cron_loc/ 37 36 chmod +x $HOURLYCRON 38 39 echo "" 37 echo "Installing unofficial-clamav-sigs.conf in /etc/ (configuration file)" 38 cp $qtp/etc/unofficial-clamav-sigs.conf /etc/ 39 sleep 2 40 echo 41 echo "The cron will run on the next cron.hourly trigger." 42 echo 40 43 exit 0
Note: See TracChangeset
for help on using the changeset viewer.

