Created
September 4, 2015 02:48
-
-
Save mbrownnycnyc/29b63a8b655e2c157b86 to your computer and use it in GitHub Desktop.
this is for future reference for blocklists http://www.maeyanie.com/2008/12/efficient-iptables-peerguardian-blocklist/ https://github.com/ilikenwf/pg2ipset
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 characters
wget http://list.iblocklist.com/?list=ydxerpxkpcfqjaybcssw&fileformat=p2p&archiveformat=gz | |
gunzip -c index.html* > level1.txt | |
ipset create LEVEL1 hash:ip hashsize 16777216 maxelem 16777216 | |
awk '!x[$0]++' level1.txt | pg2ipset - - LEVEL1 | ipset restore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment