From 16d02aa1c70bf00367a0af17af73f8fb9189fe60 Mon Sep 17 00:00:00 2001 From: Oxbian Date: Fri, 28 Apr 2023 19:09:19 +0200 Subject: Oops forgot the actions in jail.local --- Fail2Ban/jail.local | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Fail2Ban') 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] -- cgit v1.2.3