Advertisement
Guest User

Regex for fail2ban

a guest
May 8th, 2018
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. This is what is in the fail2ban configuration
  2. 2014-12-01 00:47:54.331821 [WARNING] sofia_reg.c:2752 Can't find user [1000@xxx.xxx.xxx.xxx] from 62.210.151.162
  3. failregex = \[WARNING\] sofia_reg.c:\d+ Can't find user \[.*@\d+.\d+.\d+.\d+\] from <HOST>
  4.  
  5.  
  6. Would the regex below work?
  7. 2018-05-08 19:46:57.565087 [DEBUG] sofia.c:10044 IP 155.94.64.106 Rejected by acl "domains". Falling back to Digest auth.
  8. failregex = \[DEBUG\] sofia_reg.c:\d+ IP <HOST> Rejected by acl "domains". Falling back to Digest auth.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement