aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.