Search found 2 matches

by jpinder70
11 Feb 2014, 01:41
Forum: General Discussion (csf)
Topic: regex not working, please help
Replies: 1
Views: 2029

Re: regex not working, please help

solved, if (($lgfile eq $config{CUSTOM1_LOG}) and ($line =~ /^.*?\[WARNING\] sofia_reg.c:1481 SIP auth failure \(REGISTER\) on sofia profile '(.*?)' for \[(.*?)\] from ip (\d+\.\d+\.\d+\.\d+)$/)) { return ("SIP auth failure on interface $1 for user $2",$3,"freeswitch","2&quo...
by jpinder70
07 Feb 2014, 03:31
Forum: General Discussion (csf)
Topic: regex not working, please help
Replies: 1
Views: 2029

regex not working, please help

Hi, I wrote a small regex to help me identify ip addresses trying to access my system (hackers) and block them. For some reason it's not working but the regex was tested and it returned matching results. I'm not sure what I'm missing please help. Here's the regex I wrote: # Added for Freeswitch if (...