forked from pincioc/fail2ban_mikrotik
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmtk.conf
29 lines (24 loc) · 819 Bytes
/
mtk.conf
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
# Fail2Ban configuration file
#
# Author: Mauro Fiore
#
#
[Definition]
# Option: actionban
# Notes.: command executed when banning an IP. Take care that the
# command is executed with Fail2Ban user rights.
# Tags: See jail.conf(5) man page
# Values: CMD
#
actionban = `/etc/fail2ban/script/fail2ban_mikrotik.py -m MIKROTIKIP -s 8728 -u apiuser -p VERYSECUREPASSWORD -a ban -i <ip> -l <list> -d <time>`
# Option: actionunban
# Notes.: command executed when unbanning an IP. Take care that the
# command is executed with Fail2Ban user rights.
# Tags: See jail.conf(5) man page
# Values: CMD
#
actionunban = `/etc/fail2ban/script/fail2ban_mikrotik.py -m MIKROTIKIP -s 8728 -u apiuser -p VERYSECUREPASSWORD -a unban -i <ip> -l <list>`
[Init]
# Default name of the chain
#
name = default