From 267cc357a698dee50f1bbf652e34820a9c0ef2cf Mon Sep 17 00:00:00 2001 From: clowwindy Date: Fri, 2 Jan 2015 22:00:07 -0800 Subject: [PATCH] Created Ban Brute Force Crackers (markdown) --- Ban-Brute-Force-Crackers.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Ban-Brute-Force-Crackers.md diff --git a/Ban-Brute-Force-Crackers.md b/Ban-Brute-Force-Crackers.md new file mode 100644 index 0000000..760a588 --- /dev/null +++ b/Ban-Brute-Force-Crackers.md @@ -0,0 +1,14 @@ +Shadowsocks 2.6.2+ output the IPs that try to brute force crack your password. + +You can use [autoban.py](https://github.com/shadowsocks/shadowsocks/tree/master/utils) to ban them. + + python autoban.py < /var/log/shadowsocks.log + +Use `-c` to specify with how many failure times it should be considered as an +attack. Default is 3. + +To continue watching for the log file: + + nohup tail -f /var/log/shadowsocks.log | python autoban.py >log 2>log & + +Use with caution. Avoid to ban yourself. \ No newline at end of file