Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 402 Bytes

README.md

File metadata and controls

17 lines (11 loc) · 402 Bytes

Quick & Dirty script to block China netblocks with iptables 🔥 🇨🇳

Usage

  1. Copy iptables.firewall.rules to /etc

these rules only allow 80/TCP, 443/TCP and 22/TCP

  1. Execute block-china.sh
  2. Add to crontab :

crontab -e

0 5 * * * /etc/block-china.sh > /dev/null 2>&1

you can check with the commande iptables -L