update readme
This commit is contained in:
parent
e68b3e430b
commit
e0189ab1de
2 changed files with 8 additions and 2 deletions
|
@ -8,5 +8,11 @@ Automatically ban IPs that try to brute force crack the server.
|
|||
|
||||
python autoban.py < /var/log/shadowsocks.log
|
||||
|
||||
Use `-c` to specify with how many failure times it should be considered an
|
||||
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.
|
||||
|
|
|
@ -32,7 +32,7 @@ if __name__ == '__main__':
|
|||
parser = argparse.ArgumentParser(description='See README')
|
||||
parser.add_argument('-c', '--count', default=3, type=int,
|
||||
help='with how many failure times it should be '
|
||||
'considered an attack')
|
||||
'considered as an attack')
|
||||
config = parser.parse_args()
|
||||
ips = {}
|
||||
banned = set()
|
||||
|
|
Loading…
Reference in a new issue