Skip to content

Instantly share code, notes, and snippets.

Avatar

Pong Lenis thepapanoob

  • Deutschland
View GitHub Profile
View block-china.sh
#!/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