Thuban
2017-01-08 77f37110d6b78c54438cda7a9f28d43cc01af91f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[DEFAULT]
# 24h + 5min
# Time to keep banned a bad ip
watch_while = 86700 
# Max tries before being bannes
maxtries = 3
# pf table to keep bad IP.
# remember to clean the table with this command in a cron job :
#     pfctl -t vilain_bruteforce -T expire 86400
vilain_table = vilain_bruteforce
 
### Guardians
#[name of the guardian]
#logfile = /file/to/watch
#regex = regex that return the bad guy IP
 
[ssh]
logfile = /var/log/authlog
regex = .* Failed .* from ([\S]+) .*
 
[ssh2]
logfile = /var/log/authlog
regex = .* Connection closed by ([\S]+) .*