Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (18 sloc) 861 Bytes

chamfilter

Block China and other South Asian countries at the firewall level.

Why?

Because nearly all forum and blog spam originates from China and the big Chinese ISPs do precious little to combat it.

Requirements

iptables and, if you want to build the rules files yourself, perl.

Usage 1

As root run one or more of the scripts in the scripts/ directory. Example:

sh scripts/block-china.sh

The scripts do not flush the filter table. If you somehow mess up, run iptables -F and try again.

Usage 2

Paste one or more of the file in the rules/ directory into your iptables.rules file and apply it with iptables-restore. Easy, right?

Thanks

The rulesets are based on this blacklist.