From 6b5516b8512e96952a38749c215e9938bf9bf9f0 Mon Sep 17 00:00:00 2001
From: MatthieuBarbu <30758776+MatthieuBarbu@users.noreply.github.com>
Date: Fri, 2 Mar 2018 18:27:06 +0100
Subject: [PATCH] fix sshd rule #2
in line 58, rule don't match with "%(__suff)s" but work fine if I replace with "%(__on_port_opt)s"
Debian 9 stretch : fail2ban 0.10.3
---
config/filter.d/sshd.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config/filter.d/sshd.conf b/config/filter.d/sshd.conf
index 328ba558..41b76481 100644
--- a/config/filter.d/sshd.conf
+++ b/config/filter.d/sshd.conf
@@ -55,7 +55,7 @@ cmnfailre = ^[aA]uthentication (?:failure|error|failed) for .*
mdre-normal =
-mdre-ddos = ^Did not receive identification string from %(__suff)s$
+mdre-ddos = ^Did not receive identification string from %(__on_port_opt)s
^Connection reset by %(__on_port_opt)s%(__suff)s
^SSH: Server;Ltype: (?:Authname|Version|Kex);Remote: -\d+;[A-Z]\w+:
^Read from socket failed: Connection reset by peer%(__suff)s