Advertisement
soapee01

Fail2ban FS Filter

Jul 22nd, 2019
144
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #---------------------
  2. # Log Lines to Block
  3. #---------------------
  4. 2019-07-22 09:44:37.767073 [WARNING] sofia_reg.c:1532 SIP auth challenge (INVITE) on sofia profile 'internal' for [0011390237920793@w.x.y.z] from ip 77.247.110.234
  5. 2019-07-22 09:44:37.767073 [DEBUG] sofia.c:8025 IP 77.247.110.234 Rejected by acl "domains". Falling back to Digest auth.
  6.  
  7. #---------------------
  8. # Fail2ban
  9. #---------------------
  10.  
  11. #FILTER
  12. #------
  13. /etc/fail2ban/filter.d/freeswitch-invite.conf
  14. # Fail2Ban configuration file
  15. #
  16. # Author: soapee01
  17. #
  18. [Definition]
  19. failregex = .*\[DEBUG\] sofia.c:\d+ IP <HOST> Rejected by acl.*Falling back to Digest auth.
  20. ignoreregex =
  21.  
  22. #JAIL.LOCAL
  23. #----------
  24. [freeswitch-invite]
  25. enabled = true
  26. port = 5060,5061,5080,5081
  27. filter = freeswitch-invite
  28. logpath = /usr/local/freeswitch/log/freeswitch.log
  29. action = iptables-allports[name=freeswitch-invite, protocol=all]
  30. maxretry = 5
  31. findtime = 60
  32. bantime = 6000
  33.  
  34. #---------------------
  35. # Fail2ban Logs
  36. #---------------------
  37.  
  38. 2019-07-22 09:38:42,970 fail2ban.jail : INFO Jail 'freeswitch-invite' started
  39. 2019-07-22 09:38:43,978 fail2ban.actions: WARNING [freeswitch-invite] Ban 195.154.172.176
  40. 2019-07-22 09:38:45,986 fail2ban.actions: WARNING [freeswitch-invite] Ban 62.210.244.137
  41. 2019-07-22 09:38:46,993 fail2ban.actions: WARNING [freeswitch-invite] Ban 192.3.8.10
  42. 2019-07-22 09:38:50,003 fail2ban.actions: WARNING [freeswitch-invite] Ban 62.210.91.41
  43. 2019-07-22 09:38:54,013 fail2ban.actions: WARNING [freeswitch-invite] Ban 62.210.246.122
  44. 2019-07-22 09:39:02,027 fail2ban.actions: WARNING [freeswitch-invite] Ban 62.210.90.242
  45. 2019-07-22 09:39:06,038 fail2ban.actions: WARNING [freeswitch-invite] Ban 102.165.52.145
  46. 2019-07-22 09:39:06,044 fail2ban.actions: WARNING [freeswitch-invite] Ban 23.94.144.194
  47. 2019-07-22 09:39:07,051 fail2ban.actions: WARNING [freeswitch-invite] Ban 192.3.138.210
  48. 2019-07-22 09:39:16,066 fail2ban.actions: WARNING [freeswitch-invite] Ban 107.172.15.10
  49. 2019-07-22 09:39:31,089 fail2ban.actions: WARNING [freeswitch-invite] Ban 192.210.144.178
  50. 2019-07-22 09:40:11,140 fail2ban.actions: WARNING [freeswitch-invite] Ban 192.3.183.186
  51. 2019-07-22 09:41:30,233 fail2ban.actions: WARNING [freeswitch-invite] Ban 23.94.149.146
Advertisement
RAW Paste Data Copied
Advertisement