[Freeswitch-users] can i make all log from console have date stamp

dwi yulianto dwiyulianto.anto at gmail.com
Wed Apr 2 14:29:50 MSD 2014


sorry, i mean ssl dos.

if i use that, that give cpu activity increase to 100%.

i want to make that log so i can use fail2ban to ban source IP attacker


On Wed, Apr 2, 2014 at 5:02 PM, dwi yulianto <dwiyulianto.anto at gmail.com>wrote:

> i try  ssh dos and that give log in tport. but log about tport tls didnt
> have any data/time stamp.
>
> maybe if i can make that log into date/time stamp i can make regex for
> fail2ban to find log when attacker give new connection in tls eventually.
>
> am i need to change in tport_type_tls.c in line about SU_DEBUG_5 that have
> part with "new connection from "   and change that with switch_log_printf.
> but actually i dont really understand about C. so how i can change that
> with switch_log_printf?
>
> Thanks
>
>
>
>
>
>
> On Wed, Apr 2, 2014 at 3:35 PM, Steven Ayre <steveayre at gmail.com> wrote:
>
>> Sofia stack logging is extremely verbose, far more so than you want to
>> run in production. Doing so will likely hurt the performance of your system
>> due to too much disk I/o
>>
>> What're you looking to capture?
>>
>> FS already has log messages for auth failures for fail2ban to match
>>
>>
>>
>>
>> On Tuesday, April 1, 2014, dwi yulianto <dwiyulianto.anto at gmail.com>
>> wrote:
>>
>>> i wanna make log from tport.c in console or in log file with date stamp,
>>> so i can use it for fail2ban.
>>>
>>> thanks.
>>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> 
>> 
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140402/cabfa503/attachment.html 


Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list