cd /opt wget http://rfxn.com/downloads/maldetect-current.tar.gz tar -xvzf maldetect-current.tar.gz ./maldetect-1.4.2/install.sh sed -i 's/lenny/squeeze/g' /etc/apt/sources.list apt-get update apt-get -y --no-install-recommends --force-yes install dovecot #Dovecot will fail to start. cp /etc/dovecot/dovecot.conf ./dovecot.conf.original sed -i 's/sieve=~\/\.dovecot\.sieve/#sieve=~\/\.dovecot\.sieve/g' /etc/dovecot/dovecot.conf sed -i ‘s/sieve_storage=~\/sieve/#sieve_storage=~\/sieve/g’ /etc/dovecot/dovecot.conf /etc/init.d/dovecot restart wget -O firewall_base.sh http://forums.dolphin-emu.org/attachment.php?aid=9018 wget -O firewall_badguys.sh http://forums.dolphin-emu.org/attachment.php?aid=9017 wget -O firewall_vars.sh http://forums.dolphin-emu.org/attachment.php?aid=9012 wget -O firewall.sh http://forums.dolphin-emu.org/attachment.php?aid=9013 chmod +x firewall.sh ./firewall.sh mkdir /root/... cp -r /etc /root/.../etc cp -r /var/www /root/.../website cp -r /var/spool /root/.../mail mkdir /etc/cron.minutely echo “*/1 * * * * root run-parts /etc/cron.minutely” >> /etc/crontab echo -e “maldet -a /proc > /usr/local/maldetect/malwarelog\nwall /usr/local/maldetect/malwarelog” > /etc/cron.minutely/.detecter chmod 700 /etc/cron.minutely/.detecter /etc/init.d/anacron restart maldet -m /boot,/etc,/lib,/usr/bin,/usr/sbin,/bin,/sbin,/var/www watch tail /usr/local/maldetect/inotify/inotify_log/ wget -O simple_firewall.sh http://forums.dolphin-emu.org/attachment.php?aid=9016