Selaa lähdekoodia

Change \w+ to .* to account for domains with hyphens.

FusionPBX 3 vuotta sitten
vanhempi
commit
663c0dd914
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      centos/resources/fail2ban/freeswitch.conf

+ 2 - 2
centos/resources/fail2ban/freeswitch.conf

@@ -7,8 +7,8 @@
 #          (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
 # Values:  TEXT
 #
-failregex = \[WARNING\] sofia_reg.c:\d+ SIP auth failure \(REGISTER\) on sofia profile \'\w+\' for \[.*\] from ip <HOST>
-            \[WARNING\] sofia_reg.c:\d+ SIP auth failure \(INVITE\) on sofia profile \'\w+\' for \[.*\] from ip <HOST>
+failregex = \[WARNING\] sofia_reg.c:\d+ SIP auth failure \(REGISTER\) on sofia profile \'.*\' for \[.*\] from ip <HOST>
+            \[WARNING\] sofia_reg.c:\d+ SIP auth failure \(INVITE\) on sofia profile \'.*\' for \[.*\] from ip <HOST>
 
 # Option:  ignoreregex
 # Notes.:  regex to ignore. If this regex matches, the line is ignored.