From 663c0dd914ad1de9c159785ed794232276483a30 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 21 Aug 2021 12:52:40 -0600 Subject: [PATCH] Change \w+ to .* to account for domains with hyphens. --- centos/resources/fail2ban/freeswitch.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centos/resources/fail2ban/freeswitch.conf b/centos/resources/fail2ban/freeswitch.conf index b187b496..98c40aff 100755 --- a/centos/resources/fail2ban/freeswitch.conf +++ b/centos/resources/fail2ban/freeswitch.conf @@ -7,8 +7,8 @@ # (?:::f{4,6}:)?(?P[\w\-.^_]+) # Values: TEXT # -failregex = \[WARNING\] sofia_reg.c:\d+ SIP auth failure \(REGISTER\) on sofia profile \'\w+\' for \[.*\] from ip - \[WARNING\] sofia_reg.c:\d+ SIP auth failure \(INVITE\) on sofia profile \'\w+\' for \[.*\] from ip +failregex = \[WARNING\] sofia_reg.c:\d+ SIP auth failure \(REGISTER\) on sofia profile \'.*\' for \[.*\] from ip + \[WARNING\] sofia_reg.c:\d+ SIP auth failure \(INVITE\) on sofia profile \'.*\' for \[.*\] from ip # Option: ignoreregex # Notes.: regex to ignore. If this regex matches, the line is ignored.