Permalink
Browse files

chamfilter, first commit.

  • Loading branch information...
bnoordhuis committed Jan 16, 2011
0 parents commit d7fd2479b58c8db47e513bd946362d5bbdf338bc
@@ -0,0 +1,31 @@
+# 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](http://www.netfilter.org/projects/iptables/index.html) and,
+if you want to build the rules files yourself, [perl](http://www.perl.org/).
+
+## 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](http://www.wizcrafts.net/chinese-iptables-blocklist.html).
Oops, something went wrong.

0 comments on commit d7fd247

Please sign in to comment.