Skip to content

Instantly share code, notes, and snippets.

View thepapanoob's full-sized avatar

Pong Lenis thepapanoob

  • Deutschland
View GitHub Profile
#!/bin/bash
# Add new ipset List
ipset -N china hash:net
# Get the latest Chinese Zone File
wget -P . http://www.ipdeny.com/ipblocks/data/countries/cn.zone
sudo mv cn.zone /etc/zones/cn.zone
# Iterate all IP's and add them to the blocklist