aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOxbian <got.dacs@slmail.me>2023-04-28 19:09:19 +0200
committerOxbian <got.dacs@slmail.me>2023-04-28 19:09:19 +0200
commit16d02aa1c70bf00367a0af17af73f8fb9189fe60 (patch)
tree455fbcc7f0f96cfb37acefb95f10fe6b1678fc52
parent123e38b970c6b58e2614fe39f7889cf1e29527f0 (diff)
downloadmatrix-monitoring-main.tar.gz
matrix-monitoring-main.zip
Oops forgot the actions in jail.localmain
-rw-r--r--Fail2Ban/jail.local5
1 files changed, 5 insertions, 0 deletions
diff --git a/Fail2Ban/jail.local b/Fail2Ban/jail.local
index 774fa35..8a6b97f 100644
--- a/Fail2Ban/jail.local
+++ b/Fail2Ban/jail.local
@@ -7,8 +7,13 @@ findtime = 300
maxretry = 3
banaction = iptables-multiport
backend = systemd
+
# Action to ban using IP tables and send matrix notification
+action_tg = %(banaction)s[name=%(__name__)s, bantime="%(bantime)s", port="%(port)s", protocol="%(protocol)s", chain>
+ matrix[name=%(__name__)s]
+# The simplest action to take: ban only
+action = %(action_tg)s
# SSH jail
[sshd]
ArKa projects. All rights to me, and your next child right arm.