diff modules/fail2ban/templates/ibb-sshd-bad-user.epp @ 430:79e5fed321fa

Break up SSH bad users regexes The list had got so long that it was failing to compile!
author IBBoard <dev@ibboard.co.uk>
date Sun, 11 Dec 2022 20:27:08 +0000
parents 3e04f35dd0af
children
line wrap: on
line diff
--- a/modules/fail2ban/templates/ibb-sshd-bad-user.epp	Sun Dec 11 19:03:22 2022 +0000
+++ b/modules/fail2ban/templates/ibb-sshd-bad-user.epp	Sun Dec 11 20:27:08 2022 +0000
@@ -11,7 +11,9 @@
 #          (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
 # Values:  TEXT
 #
-failregex = Failed password for invalid user (<%= join($bad_users, '|') %>)? from <HOST> port [0-9]+ ssh2
+failregex = <% $bad_users.each |$array| { %>   Failed password for invalid user (<%= join($array, '|') %>)? from <HOST> port [0-9]+ ssh2
+<% } %>
+
 
 # Option:  ignoreregex
 # Notes.:  regex to ignore. If this regex matches, the line is ignored.