This file contains 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
#!/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 |