mirror of https://github.com/fail2ban/fail2ban
change unban back to find comment so correct entry always deleted
parent
0e3e9b1d7f
commit
ac2076ef4f
|
@ -4,7 +4,7 @@
|
|||
#
|
||||
# Author: Duncan Bellamy <dunk@denkimushi.com>
|
||||
# based on forum.mikrotik.com post by pakjebakmeel
|
||||
##
|
||||
#
|
||||
# in the instructions:
|
||||
# (10.0.0.1 is ip of mikrotik router)
|
||||
# (10.0.0.2 is ip of fail2ban machine)
|
||||
|
@ -54,7 +54,7 @@ actioncheck =
|
|||
|
||||
actionban = %(mtikcommand)s "/ip firewall address-list add list=\"%(mtiklistname)s\" address=<ip> comment=%(mtikcomment)s"
|
||||
|
||||
actionunban = %(mtikcommand)s "/ip firewall address-list remove [find list=\"%(mtiklistname)s\" address=<ip>]"
|
||||
actionunban = %(mtikcommand)s "/ip firewall address-list remove [find list=\"%(mtiklistname)s\" comment=%(mtikcomment)s]"
|
||||
|
||||
mtikcommand = ssh -l %(mtikuser)s -p%(mtikport)s -i %(mtikkeyfile)s %(mtikhost)s
|
||||
|
||||
|
|
Loading…
Reference in New Issue