summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Bellamy <dunk@denkimushi.com>2020-12-29 13:17:41 +0000
committerDuncan Bellamy <dunk@denkimushi.com>2023-03-08 09:17:13 +0000
commit5781675a7d8a8b9c48074d68ab9acd5964fc2368 (patch)
treec1170e4417c4d884b7f8a02f3fff813122317fbf
parentac2076ef4fac366fd62a10ec37964d51f23c803b (diff)
downloadfail2ban-5781675a7d8a8b9c48074d68ab9acd5964fc2368.tar.gz
change startcomment and comment so correct rules are flushed
-rw-r--r--config/action.d/mikrotik.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/action.d/mikrotik.conf b/config/action.d/mikrotik.conf
index 0f029af5..300fde20 100644
--- a/config/action.d/mikrotik.conf
+++ b/config/action.d/mikrotik.conf
@@ -75,10 +75,10 @@ mtikhost =
mtiklistname = Auto Fail2Ban
# Option: startcomment
# Notes.: used as a prefix to all comments, and used to match for flushing rules
-startcomment = AutoF2B
+startcomment = f2b-<name>
# Option: mtikcomment
# Notes.: comment to use on routerOS (must be unique as used for ip address removal)
-mtikcomment = %(startcomment)s-<name>-<ip>
+mtikcomment = %(startcomment)s-<ip>
[Init]
name="%(__name__)s"