-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
"Quis custodiet ipsos custodes?" Needs to be tested with IPv6 and other UDP packets
- Loading branch information
Alexx Roche
committed
Aug 26, 2024
1 parent
b5210c1
commit 29cfd12
Showing
2 changed files
with
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[Definition] | ||
# example log error | ||
#Aug 25 23:44:05 ns0 ruroco-server[667459]: [2024-08-25T23:44:06Z ERROR ] Invalid read count 256, expected 1024 from 10.0.0.2:50893 | ||
# from `journalctl -fu ruroco` | ||
|
||
# the colour formatting in ruroco/src/common.rs:{info() error()} becomes invisible chars in journalctl chars around the 'ERROR' | ||
failregex = ^.*?ruroco-server\[\d+\]: \[\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}Z[^E]*ERROR[^\]]*\] Invalid read count \d+, expected \d+ from <HOST>:\d+$ | ||
# TODO Yet to be tested on IPv6 | ||
# TODO see if a DoS with other UDP packerts show up in the logs for ruroco or ruroco-commander | ||
|
||
ignoreregex = ^.* INFO \] Successfully .*$ | ||
|
||
datepattern = ^%%Y-%%m-%%dT%%H:%%M:%%SZ | ||
# DEV NOTES: | ||
# | ||
# Author: alexx | ||
# ver. 2024-Aug-26.001 | ||
# testing: fail2ban-regex systemd-journal /etc/fail2ban/filter.d/ruroco.conf | ||
|
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 @@ | ||
[ruroco] | ||
enable = true | ||
port = 8080 | ||
#backend = systed # enable if using journalctl | ||
#logfile = /var/log/syslog # if that is were logs are being sent | ||
filter = ruroco | ||
maxretry = 5 |