Skip to content

Commit

Permalink
Update update_domain_blacklist.sh
Browse files Browse the repository at this point in the history
tell cURL to follow HTTP redirects
  • Loading branch information
ym committed May 5, 2014
1 parent 3ef24ae commit a8d493b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update_domain_blacklist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ iptables -A $IPCHAIN -j RETURN

# get new rules from github, replace INPUT for IPCHAIN and DROP for TARGET and apply.

curl -s https://raw.github.com/smurfmonitor/dns-iptables-rules/master/domain-blacklist.txt | while read line;
curl -s -L https://raw.github.com/smurfmonitor/dns-iptables-rules/master/domain-blacklist.txt | while read line;
do RULE=$(echo "$line" | sed -e "s/INPUT/$IPCHAIN/" -e "s/-j DROP/-j $TARGET/");
eval $RULE;
done
Expand Down

0 comments on commit a8d493b

Please sign in to comment.