21 lines
443 B
Plaintext
21 lines
443 B
Plaintext
|
# 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 =
|
||
|
|
||
|
actionban = grep -qxF '<ip>' @MYSTIC_DIR@/data/denylist.txt || echo '<ip>' >> @MYSTIC_DIR@/data/denylist.txt
|
||
|
|
||
|
actionunban = sed -e '/<ip>/d' -i @MYSTIC_DIR@/data/denylist.txt
|
||
|
|
||
|
[Init]
|
||
|
|
||
|
init = Mystic BBS notifications
|