-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjail.local
56 lines (53 loc) · 1.63 KB
/
jail.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[ssh]
enabled = true
port = ssh
logpath = /var/log/auth.log
filter = sshd
banaction = iptables-multiport
maxretry = 3
findtime = 600
bantime = 900
action_abuseipdb = abuseipdb
action_slack = slack-notify
action = %(action_)s
%(action_slack)s
%(action_abuseipdb)s[abuseipdb_category="18,22"]
[ssh-level-2]
enabled = true
logpath = /var/log/fail2ban.log
filter = sshd-level-2
banaction = iptables-multiport
maxretry = 3
findtime = 3600
bantime = 5400
action_abuseipdb = abuseipdb
action_slack = slack-notify
action = %(action_)s
%(action_slack)s
%(action_abuseipdb)s[abuseipdb_category="18,22"]
[ssh-level-3]
enabled = true
logpath = /var/log/fail2ban.log
filter = sshd-level-3
banaction = iptables-multiport
maxretry = 3
findtime = 18000
bantime = 27000
action_abuseipdb = abuseipdb
action_slack = slack-notify
action = %(action_)s
%(action_slack)s
%(action_abuseipdb)s[abuseipdb_category="18,22"]
[nginx-botsearch]
enabled = true
logpath = /var/log/nginx/*error.log
filter = nginx-botsearch
banaction = iptables-multiport
maxretry = 6
findtime = 600
bantime = 900
action_abuseipdb = abuseipdb
action_slack = slack-notify
action = %(action_)s
%(action_slack)s
%(action_abuseipdb)s[abuseipdb_category="19"]