diff options
author | Duncan Bellamy <dunk@denkimushi.com> | 2020-12-06 10:53:21 +0000 |
---|---|---|
committer | Duncan Bellamy <dunk@denkimushi.com> | 2023-03-08 09:17:13 +0000 |
commit | ac2076ef4fac366fd62a10ec37964d51f23c803b (patch) | |
tree | fb38e34b65e3ec0dc54f2d15d9c11620bd0b6107 | |
parent | 0e3e9b1d7f67443c7dc046997718cc6924c83ef4 (diff) | |
download | fail2ban-ac2076ef4fac366fd62a10ec37964d51f23c803b.tar.gz |
change unban back to find comment so correct entry always deleted
-rw-r--r-- | config/action.d/mikrotik.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/action.d/mikrotik.conf b/config/action.d/mikrotik.conf index cdf63bcb..0f029af5 100644 --- a/config/action.d/mikrotik.conf +++ b/config/action.d/mikrotik.conf @@ -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 |