Created
July 9, 2014 11:23
-
-
Save daslicht/57045515d1d4029f6389 to your computer and use it in GitHub Desktop.
Revisions
-
thepapanoob renamed this gist
Jul 4, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Kruemmelmonster revised this gist
Jan 7, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,6 @@ wget http://www.okean.com/chinacidr.txt sed -i '1,4d' chinacidr.txt sed -i 's/ China//g' chinacidr.txt ipset create china hash:net while read line; do ipset add china $line; done < chinacidr.txt iptables -I INPUT -m set --match-set china src -j DROP rm chinacidr.txt -
There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ #!/bin/bash #Copyright 11.11.13 Michell Gailing <gailing.michell@gmail.com> #It's Licensed under DWWWI 'Do whatever you want with it!' wget http://www.okean.com/chinacidr.txt sed -i '1,4d' chinacidr.txt sed -i 's/ China//g' chinacidr.txt ipset create china hash:net while read line; do ipset add china ; done < chinacidr.txt iptables -I INPUT -m set --match-set china src -j DROP rm chinacidr.txt