Skip to content

Instantly share code, notes, and snippets.

@mbrownnycnyc
Created September 4, 2015 02:48
Show Gist options
  • Save mbrownnycnyc/29b63a8b655e2c157b86 to your computer and use it in GitHub Desktop.
Save mbrownnycnyc/29b63a8b655e2c157b86 to your computer and use it in GitHub Desktop.
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