From 9772341a348ef9d059af6a8ff1c188142942d1e2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sat, 21 Aug 2021 12:48:05 -0600 Subject: [PATCH] Change w+ to .* to account for domains with hyphens. --- ubuntu/resources/fail2ban/freeswitch.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ubuntu/resources/fail2ban/freeswitch.conf b/ubuntu/resources/fail2ban/freeswitch.conf index b187b49..98c40af 100755 --- a/ubuntu/resources/fail2ban/freeswitch.conf +++ b/ubuntu/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.