Created
March 26, 2011 04:08
-
-
Save dennyhalim/888017 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# info https://gist.github.com/888017 | |
# boleh masuk ke /etc/cron.daily/ | |
mkdir /root/tmp | |
cd /root/tmp | |
rm -rf /root/tmp/emerging-IPTABLES-ALL.rules | |
export IPTABLES=/sbin/iptables | |
wget http://rules.emergingthreats.net/fwrules/emerging-IPTABLES-ALL.rules;type=a | |
#curl -B http://rules.emergingthreats.net/fwrules/emerging-IPTABLES-ALL.rules -O | |
chmod +x /root/tmp/emerging-IPTABLES-ALL.rules | |
iptables -F ETBLOCKLIST & iptables -X ETBLOCKLIST | |
iptables -F LOGNDROP & iptables -X LOGNDROP | |
/root/tmp/emerging-IPTABLES-ALL.rules | |
date > /root/ok.deh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment