Created
September 1, 2013 18:17
-
-
Save cenrak/6406247 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/bash | |
iptables --flush | |
service iptables save | |
service iptables stop | |
service iptables start | |
BIPS=`cat /tmp/blocked_ips.list` | |
for ip in $BIPS | |
do | |
/sbin/iptables -I INPUT -s $ip -j DROP | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment