Skip to content

Commit

Permalink
Merge pull request #2965 from oukb/patch-1
Browse files Browse the repository at this point in the history
nsd.conf: fix for the current log format
  • Loading branch information
sebres committed Apr 3, 2021
2 parents d445b56 + a838deb commit 080dd12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/filter.d/nsd.conf
Expand Up @@ -22,10 +22,10 @@ _daemon = nsd
# (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
# Values: TEXT

failregex = ^%(__prefix_line)sinfo: ratelimit block .* query <HOST> TYPE255$
^%(__prefix_line)sinfo: .* <HOST> refused, no acl matches\.$
failregex = ^%(__prefix_line)sinfo: ratelimit block .* query <ADDR> TYPE255$
^%(__prefix_line)sinfo: .* from(?: client)? <ADDR> refused, no acl matches\.?$

ignoreregex =

datepattern = {^LN-BEG}Epoch
{^LN-BEG}
{^LN-BEG}
2 changes: 2 additions & 0 deletions fail2ban/tests/files/logs/nsd
Expand Up @@ -2,3 +2,5 @@
[1387288694] nsd[7745]: info: ratelimit block example.com. type any target 192.0.2.0/24 query 192.0.2.105 TYPE255
# failJSON: { "time": "2013-12-18T07:42:15", "match": true , "host": "192.0.2.115" }
[1387348935] nsd[23600]: info: axfr for zone domain.nl. from client 192.0.2.115 refused, no acl matches.
# failJSON: { "time": "2021-03-05T05:25:14", "match": true , "host": "192.0.2.32", "desc": "new format, no client after from, no dot at end, gh-2965" }
[2021-03-05 05:25:14.562] nsd[160800]: info: axfr for example.com. from 192.0.2.32 refused, no acl matches

0 comments on commit 080dd12

Please sign in to comment.