-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Fail2Ban filter for ZNC (requires adminlog module) | ||
# | ||
# to use this module, enable the adminlog module from within ZNC and point | ||
# logpath to its logfile (e.g. /var/lib/znc/moddata/adminlog/znc.log). | ||
|
||
[Definition] | ||
|
||
failregex = ^\[\] \[[^]]+\] failed to login from <HOST>$ | ||
|
||
ignoreregex = | ||
|
||
# DEV Notes: | ||
# Log format is: [<DATE+TIME>] [<USERNAME>] <ACTION> from <HOST> | ||
# [2018-10-27 01:40:17] [girst] connected to ZNC from 1.2.3.4 | ||
# [2018-10-27 01:40:21] [girst] disconnected from ZNC from 1.2.3.4 | ||
# [2018-10-27 01:40:55] [girst] failed to login from 1.2.3.4 | ||
# | ||
# Author: Tobias Girstmair (//gir.st/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# failJSON: { "time": "2018-10-27T01:40:55", "match": true , "host": "1.2.3.4" } | ||
[2018-10-27 01:40:55] [girst] failed to login from 1.2.3.4 | ||
|
||
# failJSON: { "match": false } | ||
[2018-10-27 01:40:17] [girst] connected to ZNC from 1.2.3.4 | ||
# failJSON: { "match": false } | ||
[2018-10-27 01:40:21] [girst] disconnected from ZNC from 1.2.3.4 |