mystic/fail2ban/action.d/mysticbbs.conf

21 lines
443 B
Plaintext
Raw Normal View History

2023-01-08 19:43:31 +01:00
# Fail2Ban configuration file
#
# Author: Mario Fetka <mario.fetka@gmail.com>
#
#
[Definition]
actionstart = touch /var/run/fail2ban/fail2ban.mysticbbs
actionstop = rm -f /var/run/fail2ban/fail2ban.mysticbbs
actioncheck =
2023-01-18 20:41:49 +01:00
actionban = grep -qxF '<ip>' @MYSTIC_DIR@/data/denylist.txt || echo '<ip>' >> @MYSTIC_DIR@/data/denylist.txt
2023-01-08 19:43:31 +01:00
2023-01-18 20:41:49 +01:00
actionunban = sed -e '/<ip>/d' -i @MYSTIC_DIR@/data/denylist.txt
2023-01-08 19:43:31 +01:00
[Init]
init = Mystic BBS notifications