2015-01-03 05:30:16 +00:00
|
|
|
Useful Tools
|
|
|
|
===========
|
|
|
|
|
|
|
|
autoban.py
|
|
|
|
----------
|
|
|
|
|
|
|
|
Automatically ban IPs that try to brute force crack the server.
|
|
|
|
|
|
|
|
python autoban.py < /var/log/shadowsocks.log
|
|
|
|
|
2015-01-03 05:50:08 +00:00
|
|
|
Use `-c` to specify with how many failure times it should be considered as an
|
2015-01-03 05:30:16 +00:00
|
|
|
attack. Default is 3.
|
2015-01-03 05:50:08 +00:00
|
|
|
|
|
|
|
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.
|