Skip to content

Instantly share code, notes, and snippets.

@dennyhalim
Created March 26, 2011 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dennyhalim/888017 to your computer and use it in GitHub Desktop.
Save dennyhalim/888017 to your computer and use it in GitHub Desktop.
#!/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