diff options
author | Oxbian <got.dacs@slmail.me> | 2023-04-28 19:09:19 +0200 |
---|---|---|
committer | Oxbian <got.dacs@slmail.me> | 2023-04-28 19:09:19 +0200 |
commit | 16d02aa1c70bf00367a0af17af73f8fb9189fe60 (patch) | |
tree | 455fbcc7f0f96cfb37acefb95f10fe6b1678fc52 | |
parent | 123e38b970c6b58e2614fe39f7889cf1e29527f0 (diff) | |
download | matrix-monitoring-16d02aa1c70bf00367a0af17af73f8fb9189fe60.tar.gz matrix-monitoring-16d02aa1c70bf00367a0af17af73f8fb9189fe60.zip |
Oops forgot the actions in jail.localmain
-rw-r--r-- | Fail2Ban/jail.local | 5 |
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] |